This is the code repository for Getting Started with Qt 5, published by Packt.
Introduction to programming Qt 5 for cross-platform application development
Qt is a cross-platform application framework and widget toolkit that is used to create GUI applications that can run on different hardware and operating systems. The main aim of this book is to introduce Qt to the reader. Through the use of simple examples, we will walk you through building blocks without focusing too much on theory.
This book covers the following exciting features:
- Set up and configure your machine to begin developing Qt applications
- Discover different widgets and layouts for constructing UIs
- Understand the key concept of signals and slots
- Understand how signals and slots help animate a GUI
- Explore how to create customized widgets along with signals and slots
- Understand how to subclass and create a custom windows application
- Understand how to write applications that can talk to databases.
If you feel this book is for you, get your copy today!
All of the code is organized into folders. For example, Chapter02.
The code will look like the following:
QSqlDatabase db_conn =
QSqlDatabase::addDatabase("QMYSQL", "contact_db");
db_conn.setHostName("127.0.0.1");
db_conn.setDatabaseName("contact_db");
db_conn.setUserName("root");
db_conn.setPassword("");
db_conn.setPort(3306);
Following is what you need for this book: Anyone trying to start development of graphical user interface application will find this book useful. One does not need prior exposure to other toolkits to understand this book. In order to learn from this book you should have basic knowledge of C++ and a good grasp of Object Oriented Programming. Familiarity with GNU/Linux will be very useful though it's not a mandatory skill.
With the following software and hardware list you can run all code files present in the book (Chapter 1-6).
Chapter | Software required | OS required |
---|---|---|
1-6 | XAMP or MySql5 | Windows, Mac OS X, and Linux (Any) |
We also provide a PDF file that has color images of the screenshots/diagrams used in this book. Click here to download it.
Benjamin Baka is a full-stack software developer and is passionate about cutting-edge technologies and elegant programming techniques. He has 10 years in different technologies, from C++, Java, Ruby, Python to Qt. Some of the projects he's working on can be found on his GitHub page. He is currently working on exciting technologies all from the camp of mPedigree Network.
Python Data Structures and Algorithms
Click here if you have any feedback or suggestions.
If you have already purchased a print or Kindle version of this book, you can get a DRM-free PDF version at no cost.
Simply click on the link to claim your free PDF.