Qt 5 Blueprints

Book description

Design, build, and deploy cross-platform GUI projects using the amazingly powerful Qt 5 framework

  • Develop native graphical applications that can run anywhere with one of the world’s best open-source frameworks

  • Learn all about signals, slots, models, and views to design a robust structure for your application

  • A comprehensive tutorial with step-by-step instructions to help you extend your applications across a wide domain

  • In Detail

    Qt is a cross-platform application development framework that provides great visual interfaces for users and intuitive APIs for developers. The current version, Qt 5, provides enormous modules, from threading to interface animations, to ease your pain when developing cross-platform applications.

    Starting with the basic concepts and fundamentals of Qt 5, Qt 5 Blueprints helps you get familiarized with the layouts and widgets of Qt as you build and debug a test application in Qt Creator. You will pick up the Qt design philosophy throughout the book, which will definitely help you to script your code in a more elegant manner.

    Table of contents

    1. Qt 5 Blueprints
      1. Table of Contents
      2. Qt 5 Blueprints
      3. Credits
      4. About the Author
      5. About the Reviewers
      6. www.PacktPub.com
        1. Support files, eBooks, discount offers, and more
          1. Why subscribe?
          2. Free access for Packt account holders
      7. Preface
        1. What this book covers
        2. What you need for this book
        3. Who this book is for
        4. Conventions
        5. Reader feedback
        6. Customer support
          1. Downloading the example code
          2. Errata
          3. Piracy
          4. Questions
      8. 1. Creating Your First Qt Application
        1. Creating a new project
        2. Changing the layout of widgets
        3. Understanding the mechanism of signals and slots
        4. Connecting two signals
        5. Creating a Qt Quick application
        6. Connecting C++ slots to QML signals
        7. Summary
      9. 2. Building a Beautiful Cross-platform Clock
        1. Creating a basic digital clock
        2. Tweaking the digital clock
        3. Saving and restoring settings
        4. Building on the Unix platforms
        5. Summary
      10. 3. Cooking an RSS Reader with Qt Quick
        1. Understanding model and view
        2. Parsing RSS Feeds by XmlListModel
        3. Tweaking the categories
        4. Utilizing ScrollView
        5. Adding BusyIndicator
        6. Making a frameless window
        7. Debugging QML
        8. Summary
      11. 4. Controlling Camera and Taking Photos
        1. Accessing the camera in Qt
        2. Controlling the camera
        3. Displaying errors on the status bar
        4. Permanent widgets in the status bar
        5. Utilizing the menu bar
        6. Using QFileDialog
        7. QML camera
        8. Summary
      12. 5. Extending Paint Applications with Plugins
        1. Drawing via QPainter
        2. Writing static plugins
        3. Writing dynamic plugins
        4. Merging plugins and main program projects
        5. Creating a C++ plugin for QML applications
        6. Summary
      13. 6. Getting Wired and Managing Downloads
        1. Introducing Qt network programming
        2. Utilizing QNetworkAccessManager
        3. Making use of the progress bar
        4. Writing multithreaded applications
        5. Managing a system network session
        6. Summary
      14. 7. Parsing JSON and XML Documents to Use Online APIs
        1. Setting up Qt for Android
        2. Parsing JSON results
        3. Parsing XML results
        4. Building Qt applications for Android
        5. Parsing JSON in QML
        6. Summary
      15. 8. Enabling Your Qt Application to Support Other Languages
        1. Internationalization of Qt applications
        2. Translating Qt Widgets applications
        3. Disambiguating identical texts
        4. Changing languages dynamically
        5. Translating Qt Quick applications
        6. Summary
      16. 9. Deploying Applications on Other Devices
        1. Releasing Qt applications on Windows
        2. Creating an installer
        3. Packaging Qt applications on Linux
        4. Deploying Qt applications on Android
        5. Summary
      17. 10. Don't Panic When You Encounter These Issues
        1. Commonly encountered issues
          1. C++ syntax mistakes
          2. Pointer and memory
          3. Incompatible shared libraries
          4. Doesn't run on Android!
        2. Debugging Qt applications
        3. Debugging Qt Quick applications
        4. Useful resources
        5. Summary
      18. Index

    Product information

    • Title: Qt 5 Blueprints
    • Author(s): Symeon Huang
    • Release date: March 2015
    • Publisher(s): Packt Publishing
    • ISBN: 9781784394615