Skip to Content
Hands-On GUI Programming with C++ and Qt5
book

Hands-On GUI Programming with C++ and Qt5

by Lee Zhi Eng
April 2018
Intermediate to advanced
404 pages
8h 27m
English
Packt Publishing
Content preview from Hands-On GUI Programming with C++ and Qt5

Setting up a new project

First, create a new Qt Console Application project. Then, open up the project file (.pro) and add in the following module:

QT += core network 
Qt -= gui 

You should have noticed that this project doesn't have any gui module (we make sure it's explicitly removed) as we don't need any user interface for the server program. That is also the reason why we chose Qt Console Application instead of the usual Qt Widgets Application.

Actually, that's it—you have successfully added the networking module to your project. In the next section, we will learn how to create the server program for our chat system.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

C++ GUI Programming with Qt 4

C++ GUI Programming with Qt 4

Jasmin Blanchette, Mark Summerfield

Publisher Resources

ISBN: 9781788397827Supplemental Content