Qt wiki will be updated on October 12th 2023 starting at 11:30 AM (EEST) and the maintenance will last around 2-3 hours. During the maintenance the site will be unavailable.
New Features in Qt 5.15: Difference between revisions
(Format headers and module names) |
Allan Jensen (talk | contribs) (→New Features (within existing modules): color space additions) |
||
Line 13: | Line 13: | ||
** QFile::moveToTrash provides a cross platform API for moving files to the trash/recycling bin on Windows, macOS, and Linux desktop (implementing the [https://specifications.freedesktop.org/trash-spec/trashspec-1.0.html freedesktop.org specification]). | ** QFile::moveToTrash provides a cross platform API for moving files to the trash/recycling bin on Windows, macOS, and Linux desktop (implementing the [https://specifications.freedesktop.org/trash-spec/trashspec-1.0.html freedesktop.org specification]). | ||
** QFileInfo::isJunction reports whether a file system entry is a Windows NTFS junction | ** QFileInfo::isJunction reports whether a file system entry is a Windows NTFS junction | ||
** QRunnable's can now be created from std::function without having to subclass QRunnable. | |||
** QThreadPool::start and tryStart can now take std::function and thereby also anonymous lambda functions as arguments. | |||
* Qt GUI | * Qt GUI | ||
** QColorSpace are now natively supported as a QVariant type. | |||
** QColorSpace setters can now operate on invalid color spaces, making it possible to set primaries and transfer function independently. | |||
* Qt Location | * Qt Location | ||
* Qt Multimedia | * Qt Multimedia | ||
Line 25: | Line 29: | ||
** Added qmlformat tool which automatically formats any QML file according to the [https://doc.qt.io/qt-5/qml-codingconventions.html QML Coding Conventions]. | ** Added qmlformat tool which automatically formats any QML file according to the [https://doc.qt.io/qt-5/qml-codingconventions.html QML Coding Conventions]. | ||
** Added support for the [https://github.com/tc39/proposal-nullish-coalescing Nullish Coalescing Operator] (??). | ** Added support for the [https://github.com/tc39/proposal-nullish-coalescing Nullish Coalescing Operator] (??). | ||
** Added colorspace property on image nodes, making it possible to read color space and transform images to specific color spaces. | |||
* Qt Quick | * Qt Quick | ||
** Added a PathText type, which can be used together with Qt Quick Shapes to render text as geometry and not based on distance fields or pre-rendered textures. This can be useful for rendering large font sizes which would otherwise consume a lot of texture memory. | ** Added a PathText type, which can be used together with Qt Quick Shapes to render text as geometry and not based on distance fields or pre-rendered textures. This can be useful for rendering large font sizes which would otherwise consume a lot of texture memory. | ||
Line 42: | Line 47: | ||
** QDoc now generates output for C++ class and function template parameters. | ** QDoc now generates output for C++ class and function template parameters. | ||
** QDoc now generates correct output for scoped enums (enum classes). | ** QDoc now generates correct output for scoped enums (enum classes). | ||
== Platform Changes == | == Platform Changes == |
Revision as of 11:37, 12 February 2020
Note that this list should be considered as work in progress until the first Beta release.
New Features (within existing modules)
- Qt 3D
- Improved profiling and troubleshooting support
- QSortPolicy add Uniform mode to control whether uniform minification needs to be performed or not
- QMouseDevice add updateAxesContinuously property
- OpenGL Renderer is now isolated as a plugin
- Qt Bluetooth
- Qt Core
- QFile::moveToTrash provides a cross platform API for moving files to the trash/recycling bin on Windows, macOS, and Linux desktop (implementing the freedesktop.org specification).
- QFileInfo::isJunction reports whether a file system entry is a Windows NTFS junction
- QRunnable's can now be created from std::function without having to subclass QRunnable.
- QThreadPool::start and tryStart can now take std::function and thereby also anonymous lambda functions as arguments.
- Qt GUI
- QColorSpace are now natively supported as a QVariant type.
- QColorSpace setters can now operate on invalid color spaces, making it possible to set primaries and transfer function independently.
- Qt Location
- Qt Multimedia
- Qt Multimedia Widgets
- Qt Network
- Qt QML
- Introduced inline components (ability to declare multiple QML components in the same file)
- Introduced required properties
- Added a declarative way of registering types to QML
- qmllint now has a better understanding of the code and warns about more deprecated QML features
- Added qmlformat tool which automatically formats any QML file according to the QML Coding Conventions.
- Added support for the Nullish Coalescing Operator (??).
- Added colorspace property on image nodes, making it possible to read color space and transform images to specific color spaces.
- Qt Quick
- Added a PathText type, which can be used together with Qt Quick Shapes to render text as geometry and not based on distance fields or pre-rendered textures. This can be useful for rendering large font sizes which would otherwise consume a lot of texture memory.
- Added Image.sourceClipRect to specify a clipping region, to request the image plugin to render a portion of an image source.
- Added cursorShape property to pointer handlers. Most pointer handlers (e.g. DragHandler) will change the cursor when the active state is true. HoverHandler will change it when the mouse is hovering over the Item that contains the HoverHandler.
- Qt Quick Controls 2
- Added HorizontalHeaderView and VerticalHeaderView to display header data in a TableView. Support flicking synchronization, and default, fusion, imagine, material, and universal delegate styles.
- Added selectTextByMouse property to ComboBox.
- Qt SerialBus
- Qt Test
- Qt Wayland Compositor
- Qt WebEngine
- Qt WebSockets
- Qt Widgets
- QDoc
- QDoc can now generate DocBook.
- QDoc now generates output for C++ class and function template parameters.
- QDoc now generates correct output for scoped enums (enum classes).
Platform Changes
- Android
- iOS
- Wayland
New Modules
Technology Preview Modules
Qt for Automation
- Qt CoAP
- Qt KNX
- Qt MQTT
- Qt OPC UA
Deprecated Modules
To help preparing for the transition to Qt 6, numerous classes and member functions that will be removed from Qt 6.0 have been marked as deprecated in the Qt 5.15 release. Unless you define QT_NO_DEPRECATED_WARNINGS in your project, you will get compiler warnings for code that uses any deprecated APIs. Those warnings will explain which API to use instead. To disable any deprecated APIs completely, use the QT_DISABLE_DEPRECATED_BEFORE macro.
The following modules are part of Qt 5.15 release, but deprecated and considered for removal in subsequent releases of Qt:
- Qt Script
- Qt Quick Controls 1
- Qt XML Patterns
Removed Modules
The following modules have been deprecated earlier and no longer part of the Qt 5.15 release: