... Only the photos of Japan should
be displayed. The photos of England have been filtered out of the data set, but
they’re not displayed in the data container either.
7. Change the default value of ... ways of doing this. Either
you can click the yellow right-facing arrow at the top-left of the data container in
the
Data Selection field or you can select its name f...
... indirectlybytheinformationcontained in it.
LibraryofCongressCataloging-in-Publication Data
Molkentin, Daniel
[Qt4 , Einf¨uhrung in die Applikationsentwicklung.English]
The book of Qt4 : the art of building ... Applikationsentwicklung.English]
The book of Qt4 : the art of building Qtapplications/byDaniel Molkentin
1st ed.
p. cm.
Includesindex.
ISBN-1397 8-1 -...
... 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 ... thechosencategory.Whenthe user changesthe categoryon the
34
Contents
4. 3.3Integrating theMainWindowwithYourSourceCode 110...
... 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 ... as the rstargu-
ment,thenthe dialog willnot be modal .The nexttwoargumentsare thedialog
heading andthe startdirectory.
TheQDir...
... 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...