Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Application Development with Qt Creator - Third Edition

You're reading from  Application Development with Qt Creator - Third Edition

Product type Book
Published in Jan 2020
Publisher
ISBN-13 9781789951752
Pages 426 pages
Edition 3rd Edition
Languages
Author (1):
Lee Zhi Eng Lee Zhi Eng
Profile icon Lee Zhi Eng

Table of Contents (19) Chapters

Preface 1. Section 1: The Basics
2. Getting Started with Qt Creator 3. Building Applications with Qt Creator 4. Designing Your Application with Qt Designer 5. Qt Foundations 6. Developing Applications with Qt Widgets 7. Section 2: Advanced Features
8. Drawing with Qt 9. Doing More with Qt Quick 10. Implementing Multimedia with Qt Quick 11. Sensors and Qt Quick 12. Section 3: Practical Matters
13. Localizing Your Application with Qt Linguist 14. Optimizing Performance with Qt Creator 15. Developing Mobile Applications with Qt Creator 16. Embedded and IoT Development with Qt Creator 17. Qt Tips and Tricks 18. Other Books You May Enjoy

Writing console applications with Qt Creator

Remember Hello World in Chapter 1, Getting Started with Qt Creator? That was a console application – about as simple a console application as you can write. Let's recap the code: We created a new Qt console application and, in main.cpp, we wrote the following lines of code:

#include <QCoreApplication> 
#include <iostream> 
 
using namespace std; 
 
int main(int argc, char *argv[]) 
{ 
    QCoreApplication a(argc, argv); 
     
    cout << "Hello world!"; 
 
    return a.exec(); 
} 

Any valid C++ file is valid in a Qt application, including Standard Template Library (STL) code. This is especially handy if you need to write a small tool in C++ and haven't learned a lot about Qt yet – everything you know about C++ (and even C, if you prefer) is accessible to you in Qt Creator.

Although...

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 $15.99/month. Cancel anytime}