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 API 變化列錶 section contains links to new and obsolete classes.

新模塊

更多信息,拜訪 所有模塊 頁麵。

支持新的平颱

Android

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

更多信息,拜訪 Qt for Android 頁麵。

iOS

更多信息,拜訪 Qt for iOS 頁麵。

Qt Creator 更新

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)

安裝更新

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 下載 頁麵。

Qt 5.2 中的新特徵

Qt Core 模塊

Qt GUI 模塊

Qt Widgets 模塊

  • Added support for embedded clear button commonly used for item view filtering and side actions to QLineEdit
  • Added methods based on QUrl to QFileDialog
  • 添加新 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 模塊

  • 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 模塊

  • Added new property to Qt.application : state
  • Added ability to define QML singletons with QML files
  • 添加 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 模塊

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

Qt Quick Controls 模塊

Qt Quick Dialogs 模塊

Qt Quick Layouts 模塊

  • Added baseline support to layout

Qt Network 模塊

moc 新特徵

  • 添加 -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 新特徵

  • 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

API 變化列錶

以下頁麵包含 Qt 5.2 中的 API 變化列錶

其它 Qt 5 發行的補充