[ Team LiB ] • Table of Contents • Index C++ GUI Programming with Qt 3 By Jasmin Blanchette, Mark Summerfield Publisher: Prentice Hall PTR Pub Date: January 15, 2004 ISBN: 0-13-124072-2 Pages: 464 "...not only the best book on Qt I have ever seen, but also the best book presenting any programming framework. Every sentence appears to be carefully worded, and every chapter has a sound concept, and so does the work as a whole." -Matthias Ettrich, Trolltech's lead developer, founder of the KDE project "The 'Tao of Qt'.... The Qt system is a beautiful example of object oriented design, and the authors take advantage of this.... The authors have done an excellent job of presenting the subject in an interesting and engaging way...." -Ron McCarty, Instructor and Chair of the Department of Computer Science, Penn State Erie, The Behrend College The first official Trolltech guide to Qt 3.2 programming! Straight from Trolltech, this book covers all you need to build industrial-strength applications with Qt 3.2.x and C++-applications that run natively on Windows, Linux/Unix, Mac OS X, and embedded Linux with no source code changes! The book teaches solid Qt programming practices; it is not a rehash of the documentation. You'll find start-to-finish coverage packed with examples, plus a CD with the Qt 3.2 toolset and Borland C++ compilers-including a non- commercial Qt 3.2 for Windows available nowhere else! Build powerful C++ GUI applications quickly and easily Design dialogs and main windows visually and in code Learn Qt's innovative typesafe signals and slots mechanism Use layouts to create forms that automatically size and scale Create custom signals, slots, events, and controls Program the ''Qt way'' with techniques for Qt 3.2 that'll work with Qt 4 1 [ TeamCo LdieB a]pplications with menus, toolbars, dialogs, and drag and drop Utilize 2D and 3D graphics, multithreading, and networking Write database and XML applications Internationalize to reach foreign markets Exploit platform-specific-features like ActiveX Already using Qt or just starting out? Evaluating Qt or managing it? Building open source applications-or commercial applications? Want to develop for Windows without buying an expensive compiler? Whatever your goal, this is the only book you need! CD-ROM: Everything you need to write great GUI programs! • Qt 3.2 NTaobnle- Coof mComnteenrctsial Edition for Windows • Index Borland C++ 5.5 Non-Commercial Edition C++ GUI Programming with Qt 3 By JasmBion rBlalanndch Ce+tte+, M 6a.r0k STurimalm Eedrfiiteilodn Qt 3.2 Free Editions for Unix/Linux/Mac OS X Publisher: Prentice Hall PTR PuSb QDaLtiet:e J adnautaaryb a15s,e 2004 ISBN: 0-13-124072-2 The book's code examples Pages: 464 [ Team LiB ] "...not only the best book on Qt I have ever seen, but also the best book presenting any programming framework. Every sentence appears to be carefully worded, and every chapter has a sound concept, and so does the work as a whole." -Matthias Ettrich, Trolltech's lead developer, founder of the KDE project "The 'Tao of Qt'.... The Qt system is a beautiful example of object oriented design, and the authors take advantage of this.... The authors have done an excellent job of presenting the subject in an interesting and engaging way...." -Ron McCarty, Instructor and Chair of the Department of Computer Science, Penn State Erie, The Behrend College The first official Trolltech guide to Qt 3.2 programming! Straight from Trolltech, this book covers all you need to build industrial-strength applications with Qt 3.2.x and C++-applications that run natively on Windows, Linux/Unix, Mac OS X, and embedded Linux with no source code changes! The book teaches solid Qt programming practices; it is not a rehash of the documentation. You'll find start-to-finish coverage packed with examples, plus a CD with the Qt 3.2 toolset and Borland C++ compilers-including a non- commercial Qt 3.2 for Windows available nowhere else! Build powerful C++ GUI applications quickly and easily Design dialogs and main windows visually and in code Learn Qt's innovative typesafe signals and slots mechanism Use layouts to create forms that automatically size and scale Create custom signals, slots, events, and controls Program the ''Qt way'' with techniques for Qt 3.2 that'll work with Qt 4 12 [[ TTeeaamm LLiiBB ]] •• TTaabbllee ooff CCoonntteennttss •• IInnddeexx CC++++ GGUUII PPrrooggrraammmmiinngg wwiitthh QQtt 33 BByy JJaassmmiinn BBllaanncchheettttee,, MMaarrkk SSuummmmeerrffiieelldd PPuubblliisshheerr:: PPrreennttiiccee HHaallll PPTTRR PPuubb DDaattee:: JJaannuuaarryy 1155,, 22000044 IISSBBNN:: 00--1133--112244007722--22 PPaaggeess:: 446644 Copyright "...not only the best book on Qt I have ever seen, but also the best book presenting any Bruce Perens' Open Source Series programming framework. Every sentence appears to be carefully worded, and every chapter Foreword has a sound concept, and so does the work as a whole." Preface -Matthias Ettrich, Trolltech's lead developer, founder of the KDE project Acknowledgments " T he A'T Barioe f oHfi sQtotr'y. .o.f. QTthe Qt system is a beautiful example of object oriented design, and the a uthoArbso utta tkhee Aaudthvoarsntage of this.... The authors have done an excellent job of presenting the s u bjePcrto diunc taionn interesting and engaging way...." -Ron McCarty, Instructor and Chair of the Department of Computer Science, Penn State Erie, About the CD-ROM The Behrend College Part I: Basic Qt T he firs t C hoafpfitceria 1l. T Greotltlitnegc Shta grtuedide to Qt 3.2 programming! Hello Qt S tr aight fMroamkin gT Croonllnteeccthio,n sthis book covers all you need to build industrial-strength applications w it h Qt 3U.2s.inxg athned R eCfe+r+en-cae pDpocliucmaetinotantsio nthat run natively on Windows, Linux/Unix, Mac OS X, and embedded Linux with no source code changes! The book teaches solid Qt programming p ra ctice Csh;a iptt eisr 2n. o Ctr aea triengh aDsiahlo gosf the documentation. You'll find start-to-finish coverage packed with examples, plus a CD with the Qt 3.2 toolset and Borland C++ compilers-including a non- Subclassing QDialog commercial Qt 3.2 for Windows available nowhere else! Signals and Slots in Depth Rapid Dialog Design BuildSh papoew-Cehrafnugl inCg+ D+ia loGgUsI applications quickly and easily Dynamic Dialogs Design dialogs and main windows visually and in code Built-in Widget and Dialog Classes Learn Qt's innovative typesafe signals and slots mechanism Chapter 3. Creating Main Windows Use Sluabycolaustssin gt oQ McareinaWtiend foowrms that automatically size and scale Creating Menus and Toolbars CreaImtep lecmusetnotimng tshieg nFialel sM,e snulots, events, and controls Setting Up the Status Bar Program the ''Qt way'' with techniques for Qt 3.2 that'll work with Qt 4 13 [ T eam LiUBs i]ng Dialogs Storing Settings Multiple Documents Splash Screens Chapter 4. Implementing Application Functionality The Central Widget Subclassing QTable Loading and Saving Implementing the Edit Menu Implementing the Other Menus Subclassing QTableItem Chapte r 5. Creating Custom Widgets • CustToambizlein og fQ Ct oWnitdegnettss • SubcIlnadsseixng QWidget C ++ GUI PrInotgergarmatimngin Cgu wstoitmh QWti d3gets with Qt Designer B y J asmin BDlaonucbhlee tBtuef,f Merainrgk Summerfield PuPbalrist hIeI:r : IPnrteenrtmiceed Hiaatlel PQTtR Pub D Cahtae:p tJearn 6u.a r Lya 1y5o,u 2t 0M0a4nagement ISBBNa:s 0ic- 1L3a-y1o2u4ts072-2 PageSsp:l i4tt6e4rs Widget Stacks Scroll Views Dock Windows "...not only the best book on Qt I have ever seen, but also the best book presenting any Multiple Document Interface programming framework. Every sentence appears to be carefully worded, and every chapter has a sound concept, and so does the work as a whole." - M a tthi a Csh aEpttterri 7c.h ,E vTernot lPltreoccehs'ssin lgead developer, founder of the KDE project Reimplementing Event Handlers " T h e 'TaoI nosft aQllitn'g.. E..v eTnht eFi ltQerts system is a beautiful example of object oriented design, and the a ut hors taStkaey inagd Rveasnpotansgivee oDfu rtihngis I.n.t.e. nTsihvee Parouctehsosirnsg have done an excellent job of presenting the subject in an interesting and engaging way...." -Ron McCarty, Instructor and Chair of the Department of Computer Science, Penn State Erie, Chapter 8. 2D and 3D Graphics The Behrend College Painting with QPainter T he first oGfrfaipchiaicls Twritohl lQteCcanhv agsuide to Qt 3.2 programming! Printing S tr aight fGroramph iTcsr owliltthe Ochpe,n tGhLis book covers all you need to build industrial-strength applications with Qt 3.2.x and C++-applications that run natively on Windows, Linux/Unix, Mac OS X, and e m bedd Cehda pLtienr u9x. Dwraitgh a nndo Dsroopurce code changes! The book teaches solid Qt programming practices; it is not a rehash of the documentation. You'll find start-to-finish coverage packed Enabling Drag and Drop with examples, plus a CD with the Qt 3.2 toolset and Borland C++ compilers-including a non- Supporting Custom Drag Types commercial Qt 3.2 for Windows available nowhere else! Advanced Clipboard Handling Bu Cilhda ppteorw 1e0r. f uInlp Cut+/O+ut pGuUt I applications quickly and easily Reading and Writing Binary Data Design dialogs and main windows visually and in code Reading and Writing Text Handling Files and Directories Learn Qt's innovative typesafe signals and slots mechanism Inter-Process Communication Use layouts to create forms that automatically size and scale Chapter 11. Container Classes CreaVteect ocrusstom signals, slots, events, and controls Lists Program the ''Qt way'' with techniques for Qt 3.2 that'll work with Qt 4 Maps 14 [ T eam LiPBo in]ter-Based Containers QString and QVariant Chapter 12. Databases Connecting and Querying Presenting Data in Tabular Form Creating Data-Aware Forms Chapter 13. Networking Using QFtp Using QHttp TCP Networking with QSocket UDP Networking with QSocketDevice • ChapteTra 1b4le. oXfM CLontents • ReadIinndge XxML with SAX C ++ GUI PrRoegardainmg mXMinLg w witiht hD QOMt 3 B y J asmin BWlarnitcinhge tXtMe,L Mark Summerfield Chapter 15. Internationalization PublisheWr:o rPkrienngt iwceit hH aUlnl iPcToRde Pub DatMea: kJianngu Aapryp l1ic5a,t i2o0n0s4 Translation-Aware ISBDNy: n0a-m13ic- 1L2a4n0g7u2a-g2e Switching PageTsr:a n4s6l4ating Applications Chapter 16. Providing Online Help Tooltips, Status Tips, and "What's This?" Help "...not only the best book on Qt I have ever seen, but also the best book presenting any Using QTextBrowser as a Simple Help Engine programming framework. Every sentence appears to be carefully worded, and every chapter Using Qt Assistant for Powerful Online Help has a sound concept, and so does the work as a whole." -Matthias Ettrich, Trolltech's lead developer, founder of the KDE project Chapter 17. Multithreading " T h e 'TaoW oofr kQintg' .w..it.h T Thhere aQdts system is a beautiful example of object oriented design, and the a ut hors taCokme maudnvicaantintag gweit ho tfh teh GisU.I. T..h rTeahde authors have done an excellent job of presenting the s u b ject inU asinng iQntt'es rCelasstsiensg i na Nnodn -eGnUgI Tahgrienagds way...." -Ron McCarty, Instructor and Chair of the Department of Computer Science, Penn State Erie, The Behrend College Chapter 18. Platform-Specific Features Interfacing with Native APIs The first official Trolltech guide to Qt 3.2 programming! Using ActiveX S tr aight fSreosmsio nT rMoalnltaegcehm,e nthtis book covers all you need to build industrial-strength applications with Qt 3.2.x and C++-applications that run natively on Windows, Linux/Unix, Mac OS X, and e m bedd Aepdp eLnidnixu xA. w Initshta lnlinog s Qoturce code changes! The book teaches solid Qt programming p ra ctices;A iNt oitse nono tL iace nrseinhgash of the documentation. You'll find start-to-finish coverage packed with examples, plus a CD with the Qt 3.2 toolset and Borland C++ compilers-including a non- Installing Qt/Windows commercial Qt 3.2 for Windows available nowhere else! Installing Qt/Mac Installing Qt/X11 Build powerful C++ GUI applications quickly and easily Appendix B. Qt's Class Hierarchy Design dialogs and main windows visually and in code Index Learn Qt's innovative typesafe signals and slots mechanism [ Team LiB ] Use layouts to create forms that automatically size and scale Create custom signals, slots, events, and controls Program the ''Qt way'' with techniques for Qt 3.2 that'll work with Qt 4 15 [[ TTeeaamm LLiiBB ]] Copyright Library of Congress Cataloging-in-Publication Data A CIP catalog record for this book can be obtained from the Library of Congress Editorial/Production Supervision: Kathleen M. Caren Cover Design Director: Jerry Votta Art Director: Gail Cocker-Bogusz • Table of Contents • ManufaIcntduerxing Buyer: Maura Zaldivar C++ GUI Programming with Qt 3 Acquisitions Editor: Jill Harry By Jasmin Blanchette, Mark Summerfield Editorial Assistant: Brenda Mulligan Publisher: Prentice Hall PTR Marketing Manager: Dan Depasquale Pub Date: January 15, 2004 ISBN: 0-13-124072-2 CopyriPgahgte s©: 4 624004 Trolltech AS Published by Pearson Education, Inc. Publishing as Prentice Hall Professional Technical Reference Upper Saddle River, "N.e..wn oJte orsnelyy t0h7e4 b5e8st book on Qt I have ever seen, but also the best book presenting any programming framework. Every sentence appears to be carefully worded, and every chapter This material may only be distributed subject to the terms and conditions set forth in the Open has a sound concept, and so does the work as a whole." Publication License, v1.0 or later (the latest version is available at -Matthias Ettrich, Trolltech's lead developer, founder of the KDE project http://www.opencontent.org/openpub/). "The 'Tao of Qt'.... The Qt system is a beautiful example of object oriented design, and the Prentice Hall PTR offers excellent discounts on this book when ordered in quantity authors take advantage of this.... The authors have done an excellent job of presenting the for bulk purchases or special sales. For more information, please contact: subject in an interesting and engaging way...." U.S.Corporate and Government Sales, 1-800-382-3419, -Ron McCarty, Instructor and Chair of the Department of Computer Science, Penn State Erie, [email protected]. For sales outside of the U.S., please contact: The Behrend College International Sales, 1-317-581-3793, [email protected]. The first official Trolltech guide to Qt 3.2 programming! Trolltech®, Qt®, and the Trolltech logo are registered trademarks of Trolltech. OpenGL™is a Strtardaeigmhat rfkro omf STirliocloltne cGhr,a tphhisic bs,o oInkc c. oinv etrhse aUlln yitoeud nSeteadte tso abnudil do tihnedru cstoruianlt-rsiterse.n Agltl ho tahpeprl iccoamtiopnasny wanitdh pQrto d3u.2c.tx n aanmde Cs +m+e-natpiopnliecda thioenrse itnh aart er uthne n tartaivdeelmy aornk sW oinr droewgiss,t eLrineudx t/rUandiexm, Marakcs OofS tXh,e iarnd eremspbeecdtdiveed oLwinnuexr sw.ith no source code changes! The book teaches solid Qt programming practices; it is not a rehash of the documentation. You'll find start-to-finish coverage packed The authors, copyright holder, and publisher have taken care in the preparation of this book, with examples, plus a CD with the Qt 3.2 toolset and Borland C++ compilers-including a non- but make no expressed or implied warranty of any kind and assume no responsibility for errors commercial Qt 3.2 for Windows available nowhere else! or omissions. The information in this book is furnished for informational use only, is subject to change without notice, and does not represent a commitment on the part of the copyright holdeBr uoirl dt hpeo wpuebrfluislh Ce+r.+ N Go UliaI baipliptyli cisa taiosnsus mqueidc kfloyr ainncdid eeanstialyl or consequential damages in connection with or arising out of the use of the information or programs contained herein. Design dialogs and main windows visually and in code The software described in this book is furnished under a license agreement or non-disclosure agreeLmeeanrnt. QTth'se isnonfotwvaatriev em tayyp ebsea fues esdig noar lcso apniedd s olontlsy mine acchcaonridsmance with the terms of the agreement. Use layouts to create forms that automatically size and scale Printed in the United States of America Create custom signals, slots, events, and controls First Printing Program the ''Qt way'' with techniques for Qt 3.2 that'll work with Qt 4 16 Pearson Education Ltd. [ Team LiB ] Pearson Education Australia Pty., Limited Pearson Education Singapore, Pte. Ltd. Pearson Education North Asia Ltd. Pearson Education Canada, Ltd. Pearson Educación de Mexico, S.A. de C.V. Pearson Education-Japan Pearson Education Malaysia, Pte. Ltd. [ Team LiB ] • Table of Contents • Index C++ GUI Programming with Qt 3 By Jasmin Blanchette, Mark Summerfield Publisher: Prentice Hall PTR Pub Date: January 15, 2004 ISBN: 0-13-124072-2 Pages: 464 "...not only the best book on Qt I have ever seen, but also the best book presenting any programming framework. Every sentence appears to be carefully worded, and every chapter has a sound concept, and so does the work as a whole." -Matthias Ettrich, Trolltech's lead developer, founder of the KDE project "The 'Tao of Qt'.... The Qt system is a beautiful example of object oriented design, and the authors take advantage of this.... The authors have done an excellent job of presenting the subject in an interesting and engaging way...." -Ron McCarty, Instructor and Chair of the Department of Computer Science, Penn State Erie, The Behrend College The first official Trolltech guide to Qt 3.2 programming! Straight from Trolltech, this book covers all you need to build industrial-strength applications with Qt 3.2.x and C++-applications that run natively on Windows, Linux/Unix, Mac OS X, and embedded Linux with no source code changes! The book teaches solid Qt programming practices; it is not a rehash of the documentation. You'll find start-to-finish coverage packed with examples, plus a CD with the Qt 3.2 toolset and Borland C++ compilers-including a non- commercial Qt 3.2 for Windows available nowhere else! Build powerful C++ GUI applications quickly and easily Design dialogs and main windows visually and in code Learn Qt's innovative typesafe signals and slots mechanism Use layouts to create forms that automatically size and scale Create custom signals, slots, events, and controls Program the ''Qt way'' with techniques for Qt 3.2 that'll work with Qt 4 17 [[ TTeeaamm LLiiBB ]] Bruce Perens' Open Source Series C++ GUI Programming with Qt 3 Jasmin Blanchette, Mark Summerfield Managing Linux Systems with Webmin: System Administration and Module Development Jamie Cameron Understanding the Linux Virtual Memory Manager Mel Gorman • Table of Contents • ImplemIenndetixng CIFS: The Common Internet File System C++ GCUIh rPirsotgorpahmemr inRg. wHiethrt Qetl 3 By Jasmin Blanchette, Mark Summerfield Embedded Software Development with eCos Anthony J. Massa Publisher: Prentice Hall PTR Rapid Application Development with Mozilla Pub Date: January 15, 2004 Nigel McFarlane ISBN: 0-13-124072-2 TPhaege Ls:i n4u64x Development Platform: Configuring, Using, and Maintaining a Complete Programming Environment Rafeeq Ur Rehman, Christopher Paul "...noItn otnrulys itohne D beetsetc btiooonk S oyns tQemt Is hwaivthe Senvoerr ts:e Aednv, abnucte adl sIoD Sth Tee bchesntiq buoeosk w pirtehs Sennotirntg, Aapnayche, prograMmySmQinL,g PfHraPm, aewndo rAkC. IEDvery sentence appears to be carefully worded, and every chapter has aR saofuenedq cUorn Rceehpmt, aannd so does the work as a whole." -Matthias Ettrich, Trolltech's lead developer, founder of the KDE project The Official Samba-3 HOWTO and Reference Guide "The 'JToahon oHf .Q Tte'.r.p..s tTrhae, JQetl msyesrt eRm. V iesr an oboeiaj,u Etidfuitlo ersxample of object oriented design, and the authors take advantage of this.... The authors have done an excellent job of presenting the subject in an interesting and engaging way...." [ Team LiB ] -Ron McCarty, Instructor and Chair of the Department of Computer Science, Penn State Erie, The Behrend College The first official Trolltech guide to Qt 3.2 programming! Straight from Trolltech, this book covers all you need to build industrial-strength applications with Qt 3.2.x and C++-applications that run natively on Windows, Linux/Unix, Mac OS X, and embedded Linux with no source code changes! The book teaches solid Qt programming practices; it is not a rehash of the documentation. You'll find start-to-finish coverage packed with examples, plus a CD with the Qt 3.2 toolset and Borland C++ compilers-including a non- commercial Qt 3.2 for Windows available nowhere else! Build powerful C++ GUI applications quickly and easily Design dialogs and main windows visually and in code Learn Qt's innovative typesafe signals and slots mechanism Use layouts to create forms that automatically size and scale Create custom signals, slots, events, and controls Program the ''Qt way'' with techniques for Qt 3.2 that'll work with Qt 4 18 [[ TTeeaamm LLiiBB ]] Foreword Why Qt? Why do programmers like us choose Qt? Sure, there are the obvious answers: Qt's single-source compatibility, its feature richness, its C++ performance, the availability of the source code, its documentation, the high-quality technical support, and all the other items mentioned in Trolltech's glossy marketing materials. This is all very well, but it misses the most important point: Qt is successful because programmers like it. How come programmers like one technology, but dislike another? Personally, I believe software engineers enjoy technology that feels right, but dislike everything that doesn't. How else can we explain that some of the brightest programmers need help to program a VCR, or that most • Table of Contents engineers seem to have trouble operating the company's phone system? I for one am perfectly • Index capable of memorizing sequences of random numbers and commands, but if these are required C++ GUI Programming with Qt 3 to control my answering machine, I'd prefer not to have one. At Trolltech, our phone system Bfoyr Jcasems iun sB ltaon chhoeltdte t,h Mea r'k* S' ukmeym eprrfeiesldsed down for two seconds before we are allowed to type in the other person's extension number. If you forget to do this but start typing the extension immediately, you have to dial the entire number again. Why '*'? Why not '#', or '1', or '5', or anyP oubf litshheer :o Ptrheenrti ctew Heanll tPyT Rkeys on the phone? Why two seconds and not one, or three, or one and Pau bh Daaltfe?: WJanhuya ray n1y5,t h20in04g at all? I find the phone so irritating that I avoid using it whenever I can. NoISbBoNd:y 0 -l1ik3e-1s2 4h0a7v2i-n2g to do random things, especially when those random things apparently dependPa goens :s 4o6m4 e equally random context you wish you didn't have to know about in the first place. Programming can be a lot like using our phone system, only worse. And this is where Qt comes to the rescue. Qt is different. For one thing, Qt makes sense. And for another, Qt is fun. Qt lets "...not only the best book on Qt I have ever seen, but also the best book presenting any you concentrate on your tasks. When Qt's original architects faced a problem, they didn't just programming framework. Every sentence appears to be carefully worded, and every chapter look for a good solution, or a quick solution, or the simplest solution. They looked for the right has a sound concept, and so does the work as a whole." solution, and then they documented it. Granted they made mistakes, and granted some of -Matthias Ettrich, Trolltech's lead developer, founder of the KDE project their design decisions didn't pass the test of time, but they still got a lot of things right, and "wThhaet 'wTaaosn o'tf rQigt'h..t. .c oTuhled Qatn ds ycsatne mb ei sc oar breecatuetdif.u Yl oeux acmanp lsee oef tohbisj ebcyt tohreie nfatcetd tdheast igan s,y asntedm the aouritghinoarsll yt adkees iagdnveadn ttoa gber iodfg teh Wis.i.n.d. oTwhse 9a5u tahnodrs U hnaixve/M dootnife n aonw euxnciefilelesn mt joodbe ronf pdreessketnopti nsgy sttheems saus bdjievcetr sine aans iWntienrdeoswtisn gX Pa,n Md aecn gOaSg iXn,g a wnda yG..N..U"/Linux with KDE. -Ron McCarty, Instructor and Chair of the Department of Computer Science, Penn State Erie, Long before Qt became so popular and so widely used, the dedication of Qt's developers to The Behrend College finding the right solutions made Qt special. That dedication is just as strong today and affects Tevheer fyiorsnte o wffhicoia ml Tarionltltaeincsh agnudid dee tvoe Qlotp 3s .Q2 tp. rFoogrr aums,m wionrgk!ing on Qt is a responsibility and a privilege. We are proud of helping to make your professional and open source lives easier and Smtorareig ehnt jforyoamb lTer.olltech, this book covers all you need to build industrial-strength applications with Qt 3.2.x and C++-applications that run natively on Windows, Linux/Unix, Mac OS X, and eOmneb eodf dtehde Lthininugxs w tihtaht nmo askoeusr cQet cao dpele cahsuarneg etos !u Tshee i sb oitos ko tnelianceh deso csuomlide nQtta tpiroong. rBaumt mthineg pdroaccutmiceens;t aitt ioisn n'so fto ac urse hisa sphri mofa trhiley doonc iunmdievnidtuaatilo cnl.a sYsoeus',ll wfinitdh slittatlret -staoi-df inaibsohu cto hvoewra tgoe bpuailcdked wsoitphh iesxtiacmatpelde sr,e pallu-ws oar lCdD a pwpitlihc atthioen Qst. T3h.2is t eoxoclseellte annt db oBookr lfailnlsd tCh+at+ g caopm. Ipti lsehrso-winsc yluoduin wgh aa tn oQnt- choams mtoe orfcfiearl ,Q hto 3w. 2t of oprr oWgirnadmow Qst atvhaei l"aQbtle w naoyw",h aenred ehlosew! to get the best from Qt. The book will teach a C++ programmer how to program Qt, and provides enough advanced material to satisfy experienced Qt programmers. The book is packed with good examples, advice, and explanBautilidon pso, waenrdf uwl iCll +b+e tGhUeI t eapxtp ltihcaatti ownes uqsueic tkoly i nadnudc te aaslli lnyew programmers who join Trolltech. Design dialogs and main windows visually and in code Nowadays, there are a vast number of commercial and free Qt applications available for purchLaesaer nor Q dto'sw innlnooavda. tSivoem tey paersea sfep escigianliazlesd a fnodr splaorttsi cmuleacrh vaenritsimcal markets, while others are aimed at the mass-market. Seeing so many applications built with Qt fills us with pride and inspirUess eu sla tyoo umtsa kteo Qcrte eavtee nf obremttse trh. aAtn adu wtoitmha tthicea hllye lpsi zoef tahnids bscoaolke, there will be more and higher quality Qt applications than ever before. Create custom signals, slots, events, and controls Matthias Ettrich Program the ''Qt way'' with techniques for Qt 3.2 that'll work with Qt 4 Oslo, Norway 19 November 2003 [ Team LiB ] [ Team LiB ] • Table of Contents • Index C++ GUI Programming with Qt 3 By Jasmin Blanchette, Mark Summerfield Publisher: Prentice Hall PTR Pub Date: January 15, 2004 ISBN: 0-13-124072-2 Pages: 464 "...not only the best book on Qt I have ever seen, but also the best book presenting any programming framework. Every sentence appears to be carefully worded, and every chapter has a sound concept, and so does the work as a whole." -Matthias Ettrich, Trolltech's lead developer, founder of the KDE project "The 'Tao of Qt'.... The Qt system is a beautiful example of object oriented design, and the authors take advantage of this.... The authors have done an excellent job of presenting the subject in an interesting and engaging way...." -Ron McCarty, Instructor and Chair of the Department of Computer Science, Penn State Erie, The Behrend College The first official Trolltech guide to Qt 3.2 programming! Straight from Trolltech, this book covers all you need to build industrial-strength applications with Qt 3.2.x and C++-applications that run natively on Windows, Linux/Unix, Mac OS X, and embedded Linux with no source code changes! The book teaches solid Qt programming practices; it is not a rehash of the documentation. You'll find start-to-finish coverage packed with examples, plus a CD with the Qt 3.2 toolset and Borland C++ compilers-including a non- commercial Qt 3.2 for Windows available nowhere else! Build powerful C++ GUI applications quickly and easily Design dialogs and main windows visually and in code Learn Qt's innovative typesafe signals and slots mechanism Use layouts to create forms that automatically size and scale Create custom signals, slots, events, and controls Program the ''Qt way'' with techniques for Qt 3.2 that'll work with Qt 4 110