Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Application Development with Qt Creator - Second Edition

You're reading from   Application Development with Qt Creator - Second Edition Design and build dazzling cross-platform applications using Qt and Qt Quick

Arrow left icon
Product type Paperback
Published in Nov 2014
Publisher Packt
ISBN-13 9781784398675
Length 264 pages
Edition 2nd Edition
Languages
Tools
Arrow right icon
Toc

Table of Contents (15) Chapters Close

Preface 1. Getting Started with Qt Creator FREE CHAPTER 2. Building Applications with Qt Creator 3. Designing Your Application with Qt Designer 4. Qt Foundations 5. Developing Applications with Qt Widgets 6. Drawing with Qt 7. Doing More with Qt Quick 8. Multimedia and Qt Quick 9. Sensors and Qt Quick 10. Localizing Your Application with Qt Linguist 11. Optimizing Performance with Qt Creator 12. Developing Mobile Applications with Qt Creator 13. Qt Tips and Tricks Index

Creating forms in Qt Designer

Let's create a simple calculator application using Qt Designer and two forms: one form that takes the arguments for an arithmetic operation and a second dialog form to present the results. I'll do this twice in this chapter, first to show you how to do this using Qt Widgets and second by using Qt Quick. The example is contrived, but will show you how to create multiple user interface forms in both environments and give you practice in working with signals and slots.

Tip

F1 is the keystroke you can use in Qt Creator to get help. As you write code in this and subsequent chapters, any class or method you're curious about, select it and hit F1. You'll be taken to Qt's Help mode, with documentation about that class or method.

Creating the main form

In Chapter 1, Getting Started with Qt Creator, you learned the basic elements of the Qt Widgets designer, including the palette of widgets you can use, the central Edit pane, the tree of objects...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime