... nowconnect theclicked()signalofthe Screenshot!buttontothe slot that
prepares thescreenshot,and thesignalofthe Printbuttontothe slot that enables
theconfiguration of theprintingparameters. Then wecallgrabDesktop(), ... determine the diameter via pieRect(). So that the
gradient later “creases” the edge of the pie chart circle, thus creating the impression
of spatial depth, we pla...
... exploration of the Dojo widgets.We continue in the next
section of the book by exploring some of the nonvisual elements of Dojo, the features
that augment JavaScript programming.These are the hidden ... conventions:
n
The first part is always dojo.
n
The second part is the module name.
n
The third part is the function, constructor, or sub-module name.
2 04
Cha...
... Applikationsentwicklung.English]
The book of Qt4 : the art of building Qtapplications/byDaniel Molkentin
1st ed.
p. cm.
Includesindex.
ISBN-13 97 8-1 -5 932 7- 1 47 -3
ISBN-10 1-5 932 7- 1 47 -6
1 .Qt( Electronic resource)2.Graphicaluserinterfaces(Computersystems) ... andProcessing XMLFiles 3 67
13.2.2Searching for SpecificElements 370
13.2.3Manipulatingthe...
... recycled paper
Qt 4
Qt 4
THE ART OF BUILDING Qt APPLICATIONS
DANIEL MOLKENTIN
THE BOOK of
THE BOOK of
Qt 4
THE
BOOK
of
THE
BOOK
of
Qt 4
®
MOLKENTIN
1 Basics,Tools, and First Code
Several Qt classeshaveQObject ... forother objects.
It’s akindofeventinterceptor.Chapter 7provides more details of events.
35
Daniel Molkentin
TheBook of Qt...
... now
ByteConverterDialog
decEdit
textChanged()
setText()
hexEdit
textChanged()
setText()
binEdit
textChanged()
setText()
decChanged()
hexChanged()
binChanged()
We can connect thesignals andslots of theline-edit widgets from theByteCon-
verterDialog to thesignals andslots of theByteConverter class, for example, the
hexChanged()signalofthe decEdit object ... implements both thegraphical in...
... usingthe Designer,which allowsthe basicgraphical
frameworkofmostapplications to be puttogether “bymouseclick” in Qt versions
4. 1and later .The basisofthisisthe QMainWindowQt class.
4. 1The Anatomy of ... theirtoolswithinthe main
window.Ascan be seen in theexampleofthe Designer in Figure 4. 11, theusercan
dock them in thesamewayas toolbars to side areasofthe window,orposition
them flo...
... ClickSplitterHandle::mouseDoubleClickEvent()wefirstdetermine thealignment
of thesplitter.Weobtainthe positionofthe splitter,using theQSplitter::indexOf()
method. This is also thepositionofthe widgetlyingtothe rightof(or directly
beneath) thesplitter.
Forreasons ... instantiatethe classvia theconstructor,thenQtdisplays
aseparatedialog. If you usethe predefinedstaticmethods,onthe otherhand,
whi...
... query.Thisisfollowed bythelistofstrings to be displayed.Then
comesthe indexof thelistele ment that thedrop-downwidgetdisplaysatthe be-
ginning .The next-to-lastparameter specifies whether theusercan add ... andsee whathappensto
it.
Figure 7. 3:
The DragLabel with
theQt-4logo
7 .4. 3The Drop Side
So that wecan better understandthe drag-and-drop processillustrated in Figure
7. 2onpage 19...
... weconstruct thedescription of
theaddressbook entryusingthe <table>tag. Each rowof thetable consists of
twocells,one of which contains thenameofthe address book field (the key)and
theother ,the matching ... QModelIndex&parent)const
{
Q_UNUSED(parent);
returnaddressBook.at(0).count();
}
Viewsthatuse ouraddressbook modelcan discover thelabelingofthe rowsand
columns via thehead...