New Features in Qt 6.0: Difference between revisions
Jump to navigation
Jump to search
(→Within QtCore: Added "qsizetype is the new size type in containers" part.) |
(→Within QtCore: Fixed typo. Removed dots at the end of list sentences (unified across the whole list).) |
||
Line 10: | Line 10: | ||
=== Within QtCore === | === Within QtCore === | ||
* [https://doc-snapshots.qt.io/qt6-dev/qbytearrayview.html QByteArrayView] now provides a light-weight way to view the content of a QByteArray or other char-equivalent array data | * [https://doc-snapshots.qt.io/qt6-dev/qbytearrayview.html QByteArrayView] now provides a light-weight way to view the content of a QByteArray or other char-equivalent array data | ||
* [https://doc-snapshots.qt.io/qt6-dev/qpromise.html QPromise] allows setting values, progress and exceptions to QFuture | * [https://doc-snapshots.qt.io/qt6-dev/qpromise.html QPromise] allows setting values, progress and exceptions to QFuture | ||
* [https://doc-snapshots.qt.io/qt6-dev/qfuture.html QFuture] supports attaching continuations | * [https://doc-snapshots.qt.io/qt6-dev/qfuture.html QFuture] supports attaching continuations | ||
Line 19: | Line 19: | ||
** Trivially copyable and trivially destructible types are automatically treated as relocatable (Q_RELOCATABLE_TYPE) | ** Trivially copyable and trivially destructible types are automatically treated as relocatable (Q_RELOCATABLE_TYPE) | ||
** Q_MOVABLE_TYPE and Q_RELOCATABLE_TYPE mean the same thing | ** Q_MOVABLE_TYPE and Q_RELOCATABLE_TYPE mean the same thing | ||
*[https://doc-snapshots.qt.io/qt6-dev/containers.html Container classes] use qsizetype as an underlying type for size and indexing. Additionally, several related classes got updated in a similar fashion (e.g. [https://doc-snapshots.qt.io/qt6-dev/qtextboundaryfinder.html QTextBoundaryFinder] and [https://doc-snapshots.qt.io/qt6-dev/qregularexpression.html QRegularExpression]). This change allows containers to hold more than 2^ | *[https://doc-snapshots.qt.io/qt6-dev/containers.html Container classes] now use qsizetype as an underlying type for size and indexing. Additionally, several related classes got updated in a similar fashion (e.g. [https://doc-snapshots.qt.io/qt6-dev/qtextboundaryfinder.html QTextBoundaryFinder] and [https://doc-snapshots.qt.io/qt6-dev/qregularexpression.html QRegularExpression]). This change allows containers to hold more than 2^31 items on 64 bit platforms | ||
== New Modules == | == New Modules == |
Revision as of 09:11, 5 October 2020
New Features (within existing modules)
There's been lots of clean-up all round and many deprecated methods have been removed. The Qt 6 documentation snapshot pages, automatically generated by QDoc based on the code, include lists of Obsolete Classes and New Classes and Functions.
Within QtCore
- QByteArrayView now provides a light-weight way to view the content of a QByteArray or other char-equivalent array data
- QPromise allows setting values, progress and exceptions to QFuture
- QFuture supports attaching continuations
- Signals can now be converted to QFuture objects
- QVector and QList are unified. QList is updated and should be used by default when array-like behaviour is needed
- QList, QString and QByteArray now have optimized complexity of insertion at the beginning (a.k.a. prepend)
- Q_DECLARE_TYPEINFO() mechanism simplified:
- Trivially copyable and trivially destructible types are automatically treated as relocatable (Q_RELOCATABLE_TYPE)
- Q_MOVABLE_TYPE and Q_RELOCATABLE_TYPE mean the same thing
- Container classes now use qsizetype as an underlying type for size and indexing. Additionally, several related classes got updated in a similar fashion (e.g. QTextBoundaryFinder and QRegularExpression). This change allows containers to hold more than 2^31 items on 64 bit platforms
New Modules
- Qt5Compat
- Compatibility library providing access to legacy APIs removed in Qt 6.
Platform Changes
All
- Qt is now built with CMake.
- Qt High DPI scaling is now activated by default; the default rounding policy is PassThrough
Linux
macOS
Windows
Removed Modules
See Checklist for Qt 6.0 inclusion for the selection process. Some of the modules omitted in 6.0 have moved to the marketplace. Others may be brought back in 6.1 or later. Please indicate which, if either, of these apply
- Qt Active Qt → 6.1
- Qt Multimedia → ?
- Qt Multimedia Widgets → ?
- Qt Quick Dialogs → ?
- Qt Bluetooth → ?
- Qt Charts → ?
- Qt Data Visualization → ?
- Qt Gamepad → ?
- Qt Graphical Effects → ?
- Qt Image Formats → ?
- Qt Lottie → ?
- Qt Location → ?
- Qt Positioning → ?
- Qt Quick Extras → ?
- Qt Quick WebGL → ?
- Qt Remote Objects → ?
- Qt SCXML → ?
- Qt Sensors → ?
- Qt Serial Bus → ?
- Qt Speech → ?
- Qt Virtual Keyboard → ?
- Qt WebChannel → ?
- Qt WebEngine → ?
- Qt WebView → ?
- Qt Windows Extras → 6.1
- Qt XML Patterns → ?
Code from these Qt <platform> Extras modules will find new homes in more relevant modules over time, and any remaining APIs considered for inclusion in later 6.x releases:
- Qt Android Extras
- Qt Mac Extras
- Qt X11 Extras