Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Qt 6 C++ GUI Programming Cookbook
  • Table Of Contents Toc
  • Feedback & Rating feedback
Qt 6 C++ GUI Programming Cookbook

Qt 6 C++ GUI Programming Cookbook - Third Edition

By : Eng
5 (14)
close
close
Qt 6 C++ GUI Programming Cookbook

Qt 6 C++ GUI Programming Cookbook

5 (14)
By: Eng

Overview of this book

With the growing need to develop GUIs for multiple targets and multiple screens, improving the visual quality of your application has become pivotal in helping it stand out from your competitors. With its cross-platform ability and the latest UI paradigms, Qt makes it possible to build intuitive, interactive, and user-friendly UIs for your applications. The third edition of Qt 6 C++ GUI Programming Cookbook teaches you how to develop functional and appealing UIs using the latest version of Qt 6 and C++. This book will help you learn a variety of topics such as GUI customization and animation, graphics rendering, and implementing Google Maps. You’ll also be taken through advanced concepts such as asynchronous programming, event handling using signals and slots, network programming, and other aspects to optimize your application. By the end of this Qt book, you’ll have the confidence you need to design and customize GUI applications that meet your clients' expectations and have an understanding of best-practice solutions to common problems during the app development process.
Table of Contents (17 chapters)
close
close

Creating a TCP server

In this recipe, we will learn how to create a Transmission Control Protocol (TCP) server in Qt 6. Before we’re able to create a server that lets us upload and download files, let’s scale it down a bit and learn how to create a networking server that receives and delivers texts.

How to do it…

Follow these steps to create a TCP server:

  1. First, let’s create a Qt Console Application project from File | New File or Project, as shown in the following screenshot:
Figure 7.1 – Creating a new Qt Console Application project

Figure 7.1 – Creating a new Qt Console Application project

  1. After that, go to File | New File or Project again but this time, select C++ Class under the C/C++ category, as shown in the following screenshot:
Figure 7.2 – Creating a new C++ class

Figure 7.2 – Creating a new C++ class

  1. Then, name your class server. Set its base class to QObject and make sure the Include QObject option is checked before clicking the Next...
Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Qt 6 C++ GUI Programming Cookbook
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon