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
... Applikationsentwicklung.English] The book of Qt4 : the art of building Qtapplications/byDaniel Molkentin 1st ed. p. cm. Includesindex. ISBN-1 397 8-1 - 593 2 7- 147 -3 ISBN-10 1-5 93 2 7- 147 -6 1 .Qt( Electronic resource)2.Graphicaluserinterfaces(Computersystems) ... Wirtz Original ISBN 97 8-3 -9 3 75 1 4- 1 2-3 For informationontranslations, pleas...
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 ... 252 8.11. 4The Table View 253 8.11.5Cloning Items. 2 54 9The QtSqlModule 257 9. 1Structure of theQtSql Module 257 9. 2Sel...
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
... usingthe Designer,which allowsthe basicgraphical frameworkofmostapplications to be puttogether “bymouseclick” in Qt versions 4. 1and later .The basisofthisisthe QMainWindowQt class. 4. 1The Anatomy of ... key. Alternatively,while in thenormaldesignmode,you can setthe name of thede- siredBuddywidgetinthe PropertyEditor, usingthe Buddyproperty. 3 Using this ap- proach,wewould setthe v...
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 ... as the rstargu- ment,thenthe dialog willnot be modal .The nexttwoargumentsare thedialog heading andthe startdirectory. TheQDir...
Ngày tải lên: 13/08/2014, 08:21
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 045 , 2 046 , and2 047 . 1 94 6.5 Ready-made DialogsinQt 6.5.4Input Dialogs Forsimplequeries,Qtprovides various template inputdialogs,consistingofasuit- able inputw...
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(), ... 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...
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 ... LOGGERTHREAD_H In theconstructor wespecifythefilename for the le butdonot openit. In run() weonlystartthe eventloop of thethreadvia exec(). append()opens the le for each i...
Ngày tải lên: 13/08/2014, 08:21