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
- Use Qt Creator's editor to edit your application source and resource files
- Explore the core functions of Qt Creator
- Compile and debug your Qt Quick and C++ applications using Qt Creator
- Localize applications using Qt Linguist and Qt
- Build GUI applications using both Qt and Qt Quick
- Write mobile applications for Android using Qt Creator and Qt Quick
- Integrate version control with Qt Creator
- Analyze your application's runtime performance with Qt Creator
Show and hide more
Table of contents Product information
Table of contents
- Application Development with Qt Creator Second Edition
- Table of Contents
- Application Development with Qt Creator Second Edition
- Credits
- About the Author
- About the Reviewers
- www.PacktPub.com
- Support files, eBooks, discount offers, and more
- Why subscribe?
- Free access for Packt account holders
- What this book covers
- What you need for this book
- Who this book is for
- Conventions
- Reader feedback
- Customer support
- Downloading the example code
- Errata
- Piracy
- Questions
- Downloading Qt and Qt Creator
- Finding your way around Qt Creator
- Your first application – Hello World
- Hello World using the QtGui library
- Hello World using Qt Quick
- Summary
- Getting started – our sample library
- Learning the landscape – the Build menu and the .pro files
- Linking against our sample library
- Getting lost and found again – debugging
- Setting breakpoints and stepping through your program
- Examining variables and memory
- Examining the call stack
- Code interlude – signals and slots
- Creating forms in Qt Designer
- Creating the main form
- Using application resources
- Learning more about Qt Widgets
- Creating a reusable button
- The calculator's main view
- Learning more about Qt Quick and QML
- Representing data using Qt's core classes
- Working with key-value pairs
- Performing HTTP requests
- Using XML parsing with HTTP
- Implementing WorkerThread
- Your main application and its menus
- Simple Qt Widgets
- Managing the widget layout with layouts
- Model-view-controller programming with Qt
- Analyzing a concrete model subclass
- What we need to start drawing with Qt
- Drawing with QPainter on QPaintDevice instances
- Drawing off screen
- Creating custom widgets
- The Graphics View Framework
- Summary
- The fundamental concepts of Qt Quick
- States and transitions in Qt Quick
- Integrating Qt Quick and C++
- Putting it all together – an image gallery application
- Summary
- Multimedia in Qt
- Playing audio clips and sound effects
- Playing video clips
- Accessing the camera
- Summary
- Sensors in Qt
- Determining the device location
- Obtaining a device's position – a simple example
- Summary
- Understanding the task of localization
- Marking strings for localization
- Localizing your application with QLinguist
- Including localized strings in your application
- Localizing special parameters – currencies and dates with QLocale
- Summary
- The QML performance analyzer
- QtSlowButton – a Qt Quick application in need of performance tuning
- QtLeakyButton – a Qt C++ application in need of memory help
- A mobile software development primer
- User attention is at a premium
- Computational resources are at a premium
- Network resources are at a premium
- Storage resources are at a premium
- To port or not to port?
- A word on testing
- Downloading all the pieces
- Setting environment variables
- Finishing the Android SDK installation
- Configuring Qt Creator
- Building and running your application
- Writing console applications with Qt Creator
- Integrating Qt Creator with version control systems
- Configuring the coding style and coding format options
- Building projects from the command line
- Setting the Qt Quick window display options
- Learning more about Qt
- Debugging Qt's signal-slot connections
- 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.