Book Image

Mastering Qt 5

By : Guillaume Lazar, Robin Penea
Book Image

Mastering Qt 5

By: Guillaume Lazar, Robin Penea

Overview of this book

Qt 5.7 is an application development framework that provides a great user experience and develops full-capability applications with Qt Widgets, QML, and even Qt 3D. This book will address challenges in successfully developing cross-platform applications with the Qt framework. Cross-platform development needs a well-organized project. Using this book, you will have a better understanding of the Qt framework and the tools to resolve serious issues such as linking, debugging, and multithreading. Your journey will start with the new Qt 5 features. Then you will explore different platforms and learn to tame them. Every chapter along the way is a logical step that you must take to master Qt. The journey will end in an application that has been tested and is ready to be shipped.
Table of Contents (20 chapters)
Mastering Qt 5
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Preface

Packaging your application


You will create, for each platform, a dedicated script to perform all the tasks required to build a standalone application. Depending on the OS type, the packaged application will be gallery-desktop or gallery-mobile. Because the whole gallery project has to be compiled, it also has to include gallery-core. Therefore, we will create a parent project with gallery-coregallery-desktop, and gallery-mobile.

For each platform, we will prepare the project to be packaged and create a specific script. All the scripts follow the same workflow:

  1. Set the input and output directories.

  2. Create Makefiles with qmake.

  3. Build the project.

  4. Regroup only the necessary files in the output directory.

  5. Package the application with platform-specific tasks.

  6. Store the packed application in the output directory.

These scripts could run on a developer computer or on a continuous integration server running software such as Jenkins as long as the packaging computer OS matches the script target OS (except...