New Features in Qt 6.1

From Qt Wiki
Revision as of 11:15, 20 January 2021 by EdwardWelbourne (talk | contribs) (→‎QtCore: Move QOSVersion::version() to the "as the name says" entry.)
Jump to navigation Jump to search


Overview of the changes

Key changes in Qt 6.1 include:

New Features (within existing modules)

QtCore

  • QFuture has new convenience functions to create futures in various states; and can now invoke its continuation in a context object's thread.
  • qfloat16 can be constructed uninitialized
  • Overflow-safe arithmetic is now supported by functions qAddOverflow(), qSubOverflow(), qMulOverflow()
  • removeIf() methods and erase_if() support are extended to more classes
    • QHash, QMap and their Multi variants, whose predicates take either a std::pair or the container's own iterator.
    • QSet, which also gains an insert() overload that takes (but, for now, ignores) a location hint, for compatibility with stl.
    • QString, QByteArray and QList, which also gain erase() support to remove all instances of a specified value
    • QVarLengthArray, along with erase() support and methods removeAll() and removeOne()
  • QStringView's API now includes count(), contains(), indexOf(), lastIndexOf(), constBegin(), constEnd()
  • QLocale provides mappings from its enums to ISO codes, languageToCode(), scriptToCode(), countryToCode()
  • QSocketNotifier now supports more flexible creation
  • Added QOperatingSystemVersion::version(), QMetaType::hasRegisteredDataStreamOperators(), QUntypedBindble::isReadOnly() whose names hopefully say enough.

QtNetwork

  • QNetworkCookie now supports the SameSite feature

New Modules

Platform Changes

All

Linux

macOS

Windows

Android

Removed Modules

Additional Modules Available via Package Manager

The following additional modules are available via the package manager functionality in the Qt online installer:

  • Qt Charts
    • Qt Charts still supports only OpenGL for accelerated series (AbstractSeries.useOpenGL). Such series will not render in Qt Quick if another graphics API is used for rendering.

The package manager provides these additional modules as source packages, which need to be built locally by the user.