Hello World using the QtGui library
One of Qt's strengths is its rich collection of GUI elements that you can use to create windowed applications. Making a GUI application is similar in principle to making a console application; instead of choosing Qt Console Application, select Qt Widgets Application from the New dialog presented when you choose New File or Project. Try it now:
- First, close the current file and project by clicking on Close All Projects and Editors from the File menu.
- Next, click on New File or Project… again and click on Qt Widgets Application from the first step of the wizard.
- Walk through the wizard again, naming your project
HelloWorldGui
. - Then, select the default kit. The New project wizard will prompt you for the name of the ...
Get Application Development with Qt Creator - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.