Application Development with Qt Creator - Second Edition

Application Development with Qt Creator - Second Edition

Read it now on the O’Reilly learning platform with a 10-day free trial.

O’Reilly members get unlimited access to books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.

Book description

Design and build dazzling cross-platform applications using Qt and Qt Quick

Qt Creator is a cross-platform C++ IDE (Integrated Development Environment) that is part of the Qt project. It is used for building GUI applications that run on Windows, Mac OS X, Linux, Android, and many embedded systems. It includes a visual debugger and a forms designer within an integrated GUI.

Application Development with Qt Creator Second Edition, covers everything you need to know to build cross-platform applications with Qt Creator. It starts by showing you how to get, install, and use Qt Creator, beginning with the basics of how to edit, compile, debug, and run applications. Along the way, you will learn how to use Qt to write cross-platform GUI applications for Mac OS X, Windows, Linux, and Android in C++ and Qt Quick.

You will become proficient with the facets of Qt Creator that make it a valued software development environment for students and professionals alike.

What You Will Learn

Show and hide more Table of contents Product information

Table of contents

  1. Application Development with Qt Creator Second Edition
    1. Table of Contents
    2. Application Development with Qt Creator Second Edition
    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
        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
          1. Downloading Qt and Qt Creator
          2. Finding your way around Qt Creator
          3. Your first application – Hello World
          4. Hello World using the QtGui library
          5. Hello World using Qt Quick
          6. Summary
          1. Getting started – our sample library
          2. Learning the landscape – the Build menu and the .pro files
          3. Linking against our sample library
          4. Getting lost and found again – debugging
            1. Setting breakpoints and stepping through your program
            2. Examining variables and memory
            3. Examining the call stack
            1. Code interlude – signals and slots
            2. Creating forms in Qt Designer
              1. Creating the main form
              2. Using application resources
              1. Learning more about Qt Widgets
              1. Creating a reusable button
              2. The calculator's main view
              3. Learning more about Qt Quick and QML
              1. Representing data using Qt's core classes
                1. Working with key-value pairs
                1. Performing HTTP requests
                1. Using XML parsing with HTTP
                2. Implementing WorkerThread
                1. Your main application and its menus
                2. Simple Qt Widgets
                3. Managing the widget layout with layouts
                4. Model-view-controller programming with Qt
                  1. Analyzing a concrete model subclass
                  1. What we need to start drawing with Qt
                  2. Drawing with QPainter on QPaintDevice instances
                  3. Drawing off screen
                  4. Creating custom widgets
                  5. The Graphics View Framework
                  6. Summary
                  1. The fundamental concepts of Qt Quick
                  2. States and transitions in Qt Quick
                  3. Integrating Qt Quick and C++
                  4. Putting it all together – an image gallery application
                  5. Summary
                  1. Multimedia in Qt
                  2. Playing audio clips and sound effects
                  3. Playing video clips
                  4. Accessing the camera
                  5. Summary
                  1. Sensors in Qt
                  2. Determining the device location
                  3. Obtaining a device's position – a simple example
                  4. Summary
                  1. Understanding the task of localization
                  2. Marking strings for localization
                  3. Localizing your application with QLinguist
                  4. Including localized strings in your application
                  5. Localizing special parameters – currencies and dates with QLocale
                  6. Summary
                  1. The QML performance analyzer
                    1. QtSlowButton – a Qt Quick application in need of performance tuning
                    1. QtLeakyButton – a Qt C++ application in need of memory help
                    1. A mobile software development primer
                      1. User attention is at a premium
                      2. Computational resources are at a premium
                      3. Network resources are at a premium
                      4. Storage resources are at a premium
                      5. To port or not to port?
                      6. A word on testing
                      1. Downloading all the pieces
                      2. Setting environment variables
                      3. Finishing the Android SDK installation
                      4. Configuring Qt Creator
                      5. Building and running your application
                      1. Writing console applications with Qt Creator
                      2. Integrating Qt Creator with version control systems
                      3. Configuring the coding style and coding format options
                      4. Building projects from the command line
                      5. Setting the Qt Quick window display options
                      6. Learning more about Qt
                      7. Debugging Qt's signal-slot connections
                      8. Summary
                      Show and hide more

                      Product information

                      • Title: Application Development with Qt Creator - Second Edition
                      • Author(s): Ray Rischpater
                      • Release date: November 2014
                      • Publisher(s): Packt Publishing
                      • ISBN: 9781784398675

                      You might also like

                      Check it out now on O’Reilly

                      Dive in for free with a 10-day trial of the O’Reilly learning platform—then explore all the other resources our members count on to build skills and solve problems every day.