What's New in Qt 5.2

Qt 5.2 introduces many changes for helping developers continue creating wonderful applications, easily and with less code. As well in this release, focus is placed on bug fixing and new features, while maintaining compatibility with Qt 5.1 and 5.0.

This page is a summary of new features. For specific API changes, the List of API Changes section contains links to new and obsolete classes.

New Modules

For more information, visit the All Modules page.

Support for New Platforms

Android

  • Full support for camera and recording
  • Low-latency audio (QAudioInput, QAudioOutput)
  • Command-line deployment tool
  • JNI convenience API
  • OpenSSL support

For more information, visit the Qt for Android page.

iOS

  • Media player support
  • Basic camera support (only viewfinder and image capture)
  • Low-latency audio (QAudioInput, QAudioOutput)

For more information, visit the Qt for iOS page.

Qt Creator Updates

Qt Creator 3.0 is released along with Qt 5.2. In Qt Creator 3.0, the following were added:

  • Initial iOS support
  • API cleanup
  • Enhanced Android support
  • Initial debugging backend for the LLDB Debugger (OS X)

Installation Updates

In 5.2, there are new reference installers for OS X:

  • Android
  • iOS

There is also a new target binary for Windows, OS X, and Linux:

  • Qt for Android ARMv5

The installers are available from the Downloads page.

New Features in Qt 5.2

Qt Core Module

Qt GUI Module

Qt Widgets Module

  • Added support for embedded clear button commonly used for item view filtering and side actions to QLineEdit
  • Added methods based on QUrl to QFileDialog
  • Added new QKeySequenceEdit class
  • Restored session-management support from Qt4
  • Restored basic startup-notification support on Unix
  • Added placeholderText property to QTextEdit
  • Added getMultiLineText static method to QInputDialog
  • Added tabBarClicked and tabBarDoubleClicked signals to QTabBar

Qt Print Support Module

  • Added advanced CUPS features on Linux including server-side page range selection, odd and even page selection, pages-per-sheet, job scheduling, and banner pages.

Qt QML Module

  • Added new property to Qt.application: state
  • Added ability to define QML singletons with QML files
  • Added QQmlFileSelector for applying file selectors to support certain styles of cross-platform development
  • Added a supported method for launching QML-only applications for the QML binary runtimes
  • New V4 JS engine

Qt Quick Module

  • Added a new scenegraph renderer for improved performance
  • Added texture atlas support in SceneGraph
  • Added new animator types, which can run animations on the scene graph's render thread.
  • Support for external drag-and-drop

Qt Quick Controls Module

  • Added support for an editable combo box
  • Added support for multi-selection in TableView
  • Added support for setting columns movable in TableView
  • Added Switch type
  • Added BusyIndicator type
  • Simplified deployment

Qt Quick Dialogs Module

Qt Quick Layouts Module

  • Added baseline support to layout

Qt Network Module

moc New Features

  • Added -M argument to add plugin metadata from the command line

Accessibility New Features

  • Enabled accessibility on Mac
  • Made the APIs public so that it is possible to implement accessibility for custom widgets
  • Basic accessibility support for Android

WebKit New Features

  • Added CSS blending
  • Improved the threaded garbage collection
  • Added support for LLInt on x87 (old x86 without SSE2)
  • Added Improvements to standard support in HTML5 Canvas, CSS Grid, CSS Shapes, CSS filters, and other features

List of API Changes

The pages below contain a list of API changes in Qt 5.2

Additions to Other Qt 5 Releases

© 2020 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.