The book of qt 4 the art of building qt applications - phần 5 pptx
... query.Thisisfollowed bythelistofstrings to be displayed.Then comesthe indexof thelistele ment that thedrop-downwidgetdisplaysatthe be- ginning .The next-to-lastparameter specifies whether theusercan add ... andisdescribedinRFCs2 0 45 , 2 046 , and2 047 . 1 94 6 .5 Ready-made DialogsinQt 6 .5. 4Input Dialogs Forsimplequeries,Qtprovides various template inputdialogs,consistingofasuit- able in...
Ngày tải lên: 13/08/2014, 08:21
... Keys(QMultiMap) 40 7 B .4. 3HashTableswithQHash 40 9 B .4. 4Hash-basedAmountswithQSet. 41 1 B.5Algorithms 41 2 B .5. 1The foreach Keyword 41 2 B .5. 2Sorting 41 3 B .5. 3Sorting in Unsorted Containers 41 4 B .5. 4CopyingContainer ... 39 1 .4. 2QString andOther Classesnot Derived from QObject 40 1 .4. 3The Qt InheritanceHierarchy 41 1.5QtataGlance 42 1 .5. 1The Qt Libraries...
Ngày tải lên: 28/04/2014, 16:56
... 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 ... 39 1 .4. 2QString andOther Classesnot Derived from QObject 40 1 .4. 3The Qt InheritanceHierarchy 41 1.5QtataGlance 42 1...
Ngày tải lên: 13/08/2014, 08:21
The book of qt 4 the art of building qt applications - phần 2 docx
... 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 ... enter them in theIndextabofthe...
Ngày tải lên: 13/08/2014, 08:21
The book of qt 4 the art of building qt applications - phần 3 pptx
... areasofthe window,orposition them floatingover themainwindow.Iftheyaredocked, thelatter haveasplitter (see Chapter 5. 3onpage 150 ), withwhich theusercan fine-tune thesizeratio of thedockwindowto themainwindow,ifnecessary.Dockwindowsalsohavea handle ... usingthe Designer,which allowsthe basicgraphical frameworkofmostapplications to be puttogether “bymouseclick” in Qt versions 4. 1and late...
Ngày tải lên: 13/08/2014, 08:21
The book of qt 4 the art of building qt applications - phần 4 pot
... ClickSplitterHandle::mouseDoubleClickEvent()wefirstdetermine thealignment of thesplitter.Weobtainthe positionofthe splitter,using theQSplitter::indexOf() method. This is also thepositionofthe widgetlyingtothe rightof(or directly beneath) thesplitter. Forreasons ... lastUncollapsedSizeremembers thelastsize of thewidgetinanuncollapsed state. If th is is 0for anyreason ,the implementation us...
Ngày tải lên: 13/08/2014, 08:21
The book of qt 4 the art of building qt applications - phần 6 doc
... 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...
Ngày tải lên: 13/08/2014, 08:21
The book of qt 4 the art of building qt applications - phần 7 pot
... nowconnect theclicked()signalofthe Screenshot!buttontothe slot that prepares thescreenshot,and thesignalofthe Printbuttontothe slot that enables theconfiguration of theprintingparameters. Then wecallgrabDesktop(), ... procedure(QPainter::CompositionMode_SourceIn), thecolor of thenewpixel can be derived from thesource, reducedbythealpha value of thedestination .The reduct ionofthe alphac...
Ngày tải lên: 13/08/2014, 08:21
The book of qt 4 the art of building qt applications - phần 8 doc
... QStringobjects, making useofthe toLocal8Bit()method internally. 11.4Startingand ControllingProcesses Nowandagainyou maywanttomake useofthe services of command-linebased programs, particularlyon Unix-based operating ... and usethese to read datainthe orderinwhich theywerereadinbyoperator<<(). Then wefill therespectivepropertyof thepasseddataset instance usingthe corre- sponding setmetho...
Ngày tải lên: 13/08/2014, 08:21
The book of qt 4 the art of building qt applications - phần 9 docx
... In ourcasethese arecuteedit_de.qm, cuteedit_fr.q m, andcuteedit_it.qm. 14. 1.3Using Translations in theProgram Loading thecorrect translationwhenthe program starts is thetaskofthe QTrans- latorclass.Itwillsearchfor ... the rsttimeinthe UserRole, in this casethe com- plete contents of <description>. We willuse this later to displaythecontents of thecurrent entryin aQTextBrowser. In...
Ngày tải lên: 13/08/2014, 08:21