New Features in Qt 5.2: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
=What is new in Qt 5.2=
[[Category:Developing_with_Qt::Qt 5]]<br />[toc align_right=&quot;yes&amp;quot;]
 
= What is new in Qt 5.2 =


Qt 5.2 was released on 12th of December.
Qt 5.2 was released on 12th of December.


The following pages has more information:
The following pages has more information:<br />* &quot;Qt 5.2 Release Announcement&amp;quot;:http://blog.qt.io/blog/2013/12/12/qt-5-2-released-the-best-qt-yet/<br />* &quot;Qt 5.2 Features&amp;quot;:/qt5/qt52<br />* &quot;Qt 5.2 Documentation&amp;quot;:/doc


* [http://blog.qt.io/blog/2013/12/12/qt-5-2-released-the-best-qt-yet/ Qt 5.2 Release Announcement] ''[blog.qt.io]''
== New Features ==
* [[qt5/qt52|Qt 5.2 Features]]
* [[doc|Qt 5.2 Documentation]]


==New Features==
* &quot;Qt Core&amp;quot;:http://doc-snapshot.qt.io/qt5-stable/qtcore-index.html
 
* [http://doc-snapshot.qt.io/qt5-stable/qtcore-index.html Qt Core] ''[doc-snapshot.qt.io]''
** Added class QCommandLineParser for command-line arguments parsing
** Added class QCommandLineParser for command-line arguments parsing
** Added new overload to QObject::connect() to add a context object when connecting to a lambda
** Added new overload to QObject::connect() to add a context object when connecting to a lambda  
** Added new QStringRef methods; left, right, mid
** Added new QStringRef methods; left, right, mid
** Added QLoggingCategory/qCDebug, qCWarning, … macros to configure what gets logged at runtime
** Added QLoggingCategory/qCDebug, qCWarning, … macros to configure what gets logged at runtime
** Added class QTimeZone to support time zones using <span class="caps">IANA</span> (Olson) time zone IDs
** Added class QTimeZone to support time zones using IANA (Olson) time zone IDs
** Added support to QDateTime for new Qt::TimeSpec of Qt::TimeZone and Qt::OffsetFromUTC
** Added support to QDateTime for new Qt::TimeSpec of Qt::TimeZone and Qt::OffsetFromUTC
** Added new class QCollator to provide advanced platform-based collation.
** Added new class QCollator to provide advanced platform-based collation.
Line 22: Line 20:
** Added iteration capability to containers in QVariant
** Added iteration capability to containers in QVariant
** Added dereferencing to QObject for smart pointers in QVariant
** Added dereferencing to QObject for smart pointers in QVariant
* [http://doc-snapshot.qt.io/qt5-stable/qtgui-index.html Qt <span class="caps">GUI</span>] ''[doc-snapshot.qt.io]''
* &quot;Qt GUI&amp;quot;:http://doc-snapshot.qt.io/qt5-stable/qtgui-index.html
** Added applicationState() function and applicationStateChanged() signal to QGuiApplication.
** Added applicationState() function and applicationStateChanged() signal to QGuiApplication.
** Added QOpenGLTexture class.
** Added QOpenGLTexture class.
** Added endian-neutral RGBA8888 formats to QImage.
** Added endian-neutral RGBA8888 formats to QImage.
* [http://doc-snapshot.qt.io/qt5-stable/qtwidgets-index.html Qt Widgets] ''[doc-snapshot.qt.io]''
* &quot;Qt Widgets&amp;quot;:http://doc-snapshot.qt.io/qt5-stable/qtwidgets-index.html
** Added support for embedded clear button commonly used for item view filtering and side actions to QLineEdit
** 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 methods based on QUrl to QFileDialog
Line 42: Line 40:
** Added retainSizeWhenHidden to QSizePolicy
** Added retainSizeWhenHidden to QSizePolicy
** Added resizeContentsPrecision to QHeaderView
** Added resizeContentsPrecision to QHeaderView
* [http://doc-snapshot.qt.io/qt5-stable/qtprintsupport-index.html Qt Print Support] ''[doc-snapshot.qt.io]''
* &quot;Qt Print Support&amp;quot;:http://doc-snapshot.qt.io/qt5-stable/qtprintsupport-index.html
** Added support to QPrintDialog for advanced <span class="caps">CUPS</span> features on Linux, including server-side page range selection, odd/even page selection, pages-per-sheet, job scheduling, and banner pages.
** Added support to QPrintDialog for advanced CUPS features on Linux, including server-side page range selection, odd/even page selection, pages-per-sheet, job scheduling, and banner pages.
* [http://doc-snapshot.qt.io/qt5-stable/qtqml-index.html Qt <span class="caps">QML</span>] ''[doc-snapshot.qt.io]''
* &quot;Qt QML&amp;quot;:http://doc-snapshot.qt.io/qt5-stable/qtqml-index.html
** New property on Qt.application: state.
** New property on Qt.application: state.
** Can now define <span class="caps">QML</span> singletons with <span class="caps">QML</span> Files
** Can now define QML singletons with QML Files
** Can apply file selectors to support certain styles of cross-platform development
** Can apply file selectors to support certain styles of cross-platform development
** qml binary runtime provides a supported method for launching <span class="caps">QML</span>-only applications
** qml binary runtime provides a supported method for launching QML-only applications
** New V4 JS engine
** New V4 JS engine
* [http://doc-snapshot.qt.io/qt5-stable/qtquick-index.html Qt Quick] ''[doc-snapshot.qt.io]''
* &quot;Qt Quick&amp;quot;:http://doc-snapshot.qt.io/qt5-stable/qtquick-index.html
** New Scenegraph Renderer, for improved performance
** New Scenegraph Renderer, for improved performance
** Texture atlas support in SceneGraph
** Texture atlas support in SceneGraph
** SceneGraph now supports rendering to an OpenGL Core profile
** SceneGraph now supports rendering to an OpenGL Core profile
** New animation types, called Animator, which can run animations on the the scene graph’s render thread.
** New animation types, called Animator, which can run animations on the the scene graph's render thread.
** Support for external Drag and Drop
** Support for external Drag and Drop
** Threaded render loop now uses one non-sharing OpenGL per window.
** Threaded render loop now uses one non-sharing OpenGL per window.
* [http://doc-snapshot.qt.io/qt5-stable/qtquickcontrols-index.html Qt Quick Controls] ''[doc-snapshot.qt.io]''
* &quot;Qt Quick Controls&amp;quot;:http://doc-snapshot.qt.io/qt5-stable/qtquickcontrols-index.html
** Added support for editable combo box
** Added support for editable combo box
** Added support for multi selection in TableView
** Added support for multi selection in TableView
Line 63: Line 61:
** Added Switch type
** Added Switch type
** Added BusyIndicator type
** Added BusyIndicator type
** Simplified deployment
** Simplified deployment  
* [http://doc-snapshot.qt.io/qt5-stable/qtquickdialogs-index.html Qt Quick Dialogs] ''[doc-snapshot.qt.io]''
* &quot;Qt Quick Dialogs&amp;quot;:http://doc-snapshot.qt.io/qt5-stable/qtquickdialogs-index.html
** New FontDialog
** New FontDialog
* [http://doc-snapshot.qt.io/qt5-stable/qtquicklayouts-index.html Qt Quick Layouts] ''[doc-snapshot.qt.io]''
* &quot;Qt Quick Layouts&amp;quot;:http://doc-snapshot.qt.io/qt5-stable/qtquicklayouts-index.html
** Added baseline support to layout
** Added baseline support to layout
* [http://doc-snapshot.qt.io/qt5-stable/qtnetwork-index.html Qt Network] ''[doc-snapshot.qt.io]''
* &quot;Qt Network&amp;quot;:http://doc-snapshot.qt.io/qt5-stable/qtnetwork-index.html
** QNetworkAccessManager: add public methods to pre-<span class="caps">TCP</span>/pre-<span class="caps">SSL</span>-connect
** QNetworkAccessManager: add public methods to pre-TCP/pre-SSL-connect
** QSslConfiguration: add <span class="caps">API</span> to persist and resume <span class="caps">SSL</span> sessions
** QSslConfiguration: add API to persist and resume SSL sessions
** <span class="caps">SSL</span> code: allow for debugging <span class="caps">SSL</span> traffic with Wireshark / tcpdump
** SSL code: allow for debugging SSL traffic with Wireshark / tcpdump
** QNetworkConfiguration: add public member bearerTypeFamily()
** QNetworkConfiguration: add public member bearerTypeFamily()
* [http://doc-snapshot.qt.io/qt5-stable/moc.html moc] ''[doc-snapshot.qt.io]''
* &quot;moc&amp;quot;:http://doc-snapshot.qt.io/qt5-stable/moc.html
** added -M argument to add plugin metadata from the command line
** added -M argument to add plugin metadata from the command line
* [http://doc-snapshot.qt.io/qt5-stable/accessible.html Accessibility] ''[doc-snapshot.qt.io]''
* &quot;Accessibility&amp;quot;:http://doc-snapshot.qt.io/qt5-stable/accessible.html
** Enabled accessibility on Mac
** Enabled accessibility on Mac
** Made the <span class="caps">API</span>s public so that it is possible to implement accessibility for custom widgets
** Made the APIs public so that it is possible to implement accessibility for custom widgets
** Basic accessibility support for Android
** Basic accessibility support for Android
* Qt WebKit
* Qt WebKit
** <span class="caps">CSS</span> blending
** CSS blending
** Context menus for HTML5 video
** Context menus for HTML5 video
** Canvas Path object
** Canvas Path object
** GeoLocation (with QtPositioning)
** GeoLocation (with QtPositioning)
** Web Notifications
** Web Notifications
** Page Visibility <span class="caps">API</span>
** Page Visibility API
** Threaded garbage collection
** Threaded garbage collection
* Translations
* Translations
** Translation to Italian now available
** Translation to Italian now available


==New Modules==
== New Modules ==


* [http://doc-snapshot.qt.io/qt5-stable/qtbluetooth-index.html Qt Bluetooth] ''[doc-snapshot.qt.io]''
* &quot;Qt Bluetooth&amp;quot;:http://doc-snapshot.qt.io/qt5-stable/qtbluetooth-index.html
** Supported platforms: Linux/Bluez 4.x, BlackBerry
** Supported platforms: Linux/Bluez 4.x, BlackBerry
* [http://doc-snapshot.qt.io/qt5-stable/qtnfc-index.html Qt <span class="caps">NFC</span>] ''[doc-snapshot.qt.io]''
* &quot;Qt NFC&amp;quot;:http://doc-snapshot.qt.io/qt5-stable/qtnfc-index.html
** Supported platforms: BlackBerry
** Supported platforms: BlackBerry
* [http://doc-snapshot.qt.io/qt5-stable/qtpositioning-index.html Qt Positioning] ''[doc-snapshot.qt.io]''
* &quot;Qt Positioning&amp;quot;:http://doc-snapshot.qt.io/qt5-stable/qtpositioning-index.html
** Supported platforms: All platform/NMEA, Linux/GeoClue
** Supported platforms: All platform/NMEA, Linux/GeoClue
* [http://doc-snapshot.qt.io/qt5-stable/qtwinextras-index.html Qt Windows Extras] ''[doc-snapshot.qt.io]''
* &quot;Qt Windows Extras&amp;quot;:http://doc-snapshot.qt.io/qt5-stable/qtwinextras-index.html
* [http://doc-snapshot.qt.io/qt5-stable/qtmacextras-index.html Qt Mac Extras] ''[doc-snapshot.qt.io]''
* &quot;Qt Mac Extras&amp;quot;:http://doc-snapshot.qt.io/qt5-stable/qtmacextras-index.html
* [http://doc-snapshot.qt.io/qt5-stable/qtandroidextras-index.html Qt Android Extras] ''[doc-snapshot.qt.io]''
* &quot;Qt Android Extras&amp;quot;:http://doc-snapshot.qt.io/qt5-stable/qtandroidextras-index.html


==Support for New Platforms==
== Support for New Platforms ==


* [http://doc-snapshot.qt.io/qt5-stable/android-support.html Android] ''[doc-snapshot.qt.io]''
* &quot;Android&amp;quot;:http://doc-snapshot.qt.io/qt5-stable/android-support.html
** Full support for camera and recording
** Full support for camera and recording
** Low-latency audio (QAudioInput, QAudioOutput, QSoundEffect)
** Low-latency audio (QAudioInput, QAudioOutput, QSoundEffect)
** Command-line deployment tool
** Command-line deployment tool
** <span class="caps">JNI</span> convenience <span class="caps">API</span>
** JNI convenience API
** OpenSSL support
** OpenSSL support
* [http://doc-snapshot.qt.io/qt5-stable/ios-support.html iOS] ''[doc-snapshot.qt.io]''
* &quot;iOS&amp;quot;:http://doc-snapshot.qt.io/qt5-stable/ios-support.html
** Media player support
** Media player support
** Basic camera support (only viewfinder and image capture)
** Basic camera support (only viewfinder and image capture)
** Low-latency audio (QAudioInput, QAudioOutput, QSoundEffect)
** Low-latency audio (QAudioInput, QAudioOutput, QSoundEffect)


==Qt Creator==
== Qt Creator ==


* Qt Creator 3.0
* Qt Creator 3.0
** Initial iOS support
** Initial iOS support
** Multi-Screen extensions
** Multi-Screen extensions
** <span class="caps">API</span> Cleanup
** API Cleanup
** Enhanced Android support
** Enhanced Android support
** Initial debugging backend for lldb (Mac)
** Initial debugging backend for lldb (Mac)
** Refactored and extended BlackBerry 10 support
** Refactored and extended BlackBerry 10 support


==Installation==
== Installation ==


* New reference installers
* New reference installers
Line 134: Line 132:
** Qt for Android arm5(Windows, linux, Mac)
** Qt for Android arm5(Windows, linux, Mac)


==Deprecated==
== Deprecated ==
 
* [http://doc-snapshot.qt.io/4.8/qtquick.html Qt Quick 1] ''[doc-snapshot.qt.io]''
 
===Categories:===
 
* [[:Category:Developing with Qt|Developing_with_Qt]]
** [[:Category:Developing with Qt::Qt-5|Qt 5]]

Revision as of 14:09, 23 February 2015


[toc align_right="yes&quot;]

What is new in Qt 5.2

Qt 5.2 was released on 12th of December.

The following pages has more information:
* "Qt 5.2 Release Announcement&quot;:http://blog.qt.io/blog/2013/12/12/qt-5-2-released-the-best-qt-yet/
* "Qt 5.2 Features&quot;:/qt5/qt52
* "Qt 5.2 Documentation&quot;:/doc

New Features

  • "Qt Core&quot;:http://doc-snapshot.qt.io/qt5-stable/qtcore-index.html
    • Added class QCommandLineParser for command-line arguments parsing
    • Added new overload to QObject::connect() to add a context object when connecting to a lambda
    • Added new QStringRef methods; left, right, mid
    • Added QLoggingCategory/qCDebug, qCWarning, … macros to configure what gets logged at runtime
    • Added class QTimeZone to support time zones using IANA (Olson) time zone IDs
    • Added support to QDateTime for new Qt::TimeSpec of Qt::TimeZone and Qt::OffsetFromUTC
    • Added new class QCollator to provide advanced platform-based collation.
    • Added more I/O redirection possibilities to QProcess
    • Added iteration capability to containers in QVariant
    • Added dereferencing to QObject for smart pointers in QVariant
  • "Qt GUI&quot;:http://doc-snapshot.qt.io/qt5-stable/qtgui-index.html
    • Added applicationState() function and applicationStateChanged() signal to QGuiApplication.
    • Added QOpenGLTexture class.
    • Added endian-neutral RGBA8888 formats to QImage.
  • "Qt Widgets&quot;:http://doc-snapshot.qt.io/qt5-stable/qtwidgets-index.html
    • 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
    • Restore session-management support from Qt4
    • Restore basic startup-notification support on Unix
    • Added placeholderText property to QTextEdit
    • Added getMultiLineText static method to QInputDialog
    • Added tabBarClicked and tabBarDoubleClicked signals to QTabBar
    • Added replaceWidget in QLayout
    • Added an option to have a checkbox in QMessageBox
    • Added duration control on tooltips (e.g QWidget::setToolTipDuration)
    • Added substring support to QCompleter
    • Added buttonToggled signals to QButtonGroup
    • Added retainSizeWhenHidden to QSizePolicy
    • Added resizeContentsPrecision to QHeaderView
  • "Qt Print Support&quot;:http://doc-snapshot.qt.io/qt5-stable/qtprintsupport-index.html
    • Added support to QPrintDialog for advanced CUPS features on Linux, including server-side page range selection, odd/even page selection, pages-per-sheet, job scheduling, and banner pages.
  • "Qt QML&quot;:http://doc-snapshot.qt.io/qt5-stable/qtqml-index.html
    • New property on Qt.application: state.
    • Can now define QML singletons with QML Files
    • Can apply file selectors to support certain styles of cross-platform development
    • qml binary runtime provides a supported method for launching QML-only applications
    • New V4 JS engine
  • "Qt Quick&quot;:http://doc-snapshot.qt.io/qt5-stable/qtquick-index.html
    • New Scenegraph Renderer, for improved performance
    • Texture atlas support in SceneGraph
    • SceneGraph now supports rendering to an OpenGL Core profile
    • New animation types, called Animator, which can run animations on the the scene graph's render thread.
    • Support for external Drag and Drop
    • Threaded render loop now uses one non-sharing OpenGL per window.
  • "Qt Quick Controls&quot;:http://doc-snapshot.qt.io/qt5-stable/qtquickcontrols-index.html
    • Added support for 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&quot;:http://doc-snapshot.qt.io/qt5-stable/qtquickdialogs-index.html
    • New FontDialog
  • "Qt Quick Layouts&quot;:http://doc-snapshot.qt.io/qt5-stable/qtquicklayouts-index.html
    • Added baseline support to layout
  • "Qt Network&quot;:http://doc-snapshot.qt.io/qt5-stable/qtnetwork-index.html
    • QNetworkAccessManager: add public methods to pre-TCP/pre-SSL-connect
    • QSslConfiguration: add API to persist and resume SSL sessions
    • SSL code: allow for debugging SSL traffic with Wireshark / tcpdump
    • QNetworkConfiguration: add public member bearerTypeFamily()
  • "moc&quot;:http://doc-snapshot.qt.io/qt5-stable/moc.html
    • added -M argument to add plugin metadata from the command line
  • "Accessibility&quot;:http://doc-snapshot.qt.io/qt5-stable/accessible.html
    • Enabled accessibility on Mac
    • Made the APIs public so that it is possible to implement accessibility for custom widgets
    • Basic accessibility support for Android
  • Qt WebKit
    • CSS blending
    • Context menus for HTML5 video
    • Canvas Path object
    • GeoLocation (with QtPositioning)
    • Web Notifications
    • Page Visibility API
    • Threaded garbage collection
  • Translations
    • Translation to Italian now available

New Modules

Support for New Platforms

Qt Creator

  • Qt Creator 3.0
    • Initial iOS support
    • Multi-Screen extensions
    • API Cleanup
    • Enhanced Android support
    • Initial debugging backend for lldb (Mac)
    • Refactored and extended BlackBerry 10 support

Installation

  • New reference installers
    • Qt for Android (Mac)
    • Qt for iOS (Mac)
  • New target binaries
    • Qt for Android arm5(Windows, linux, Mac)

Deprecated