New Classes and Functions in Qt 6.9

This page contains a comprehensive list of all new classes and functions introduced in Qt 6.9.

New Classes

New Member Functions

Class QAbstractOAuth2:

(since 6.9) void errorOccurred(const QString &error, const QString &errorDescription, const QUrl &uri)
(since 6.9) void setTokenRequestModifier(const QAbstractOAuth2::ContextTypeForFunctor<Functor> *context, Functor &&callback)

Class QByteArray:

(since 6.9) QByteArray operator+(QByteArrayView lhs, const QByteArray &rhs)
(since 6.9) QByteArray operator+(const QByteArray &lhs, QByteArrayView rhs)

Class QCommandLineParser:

(since 6.9) void showMessageAndExit(const QString &message, QCommandLineParser::MessageType type, int exitCode)

Class QDebug:

(since 6.9) QDebug operator<<(QDebug debug, T t)
(since 6.9) QByteArray toBytes(const T &object)

Class QFile:

(since 6.9) bool supportsMoveToTrash()

Class QFontInfo:

(since 6.9) QList<QFontVariableAxis> variableAxes() const

Class QHttp2Configuration:

(since 6.9) unsigned int maxConcurrentStreams() const
(since 6.9) void setMaxConcurrentStreams(unsigned int value)

Class QIODevice:

(since 6.9) bool readLineInto(QByteArray *line, qint64 maxSize)

Class QJniArray:

(since 6.9) QJniArray<T>::reference operator[](QJniArrayBase::size_type i)

Class QLatin1StringView:

(since 6.9) QByteArray toUtf8() const

Class QMediaMetaData:

(since 6.9) QtPrivate::QtPrivate::QKeyValueRange<const QHash<Key, QVariant> &> asKeyValueRange() const

Class QMetaEnum:

(since 6.9) bool is64Bit() const
(since 6.9) std::optional<quint64> keyToValue64(const char *key) const
(since 6.9) std::optional<quint64> value64(int index) const

Class QMetaMethod:

(since 6.9) QByteArrayView nameView() const

Class QOAuthUriSchemeReplyHandler:

(since 6.9) bool handleAuthorizationRedirect(const QUrl &url)

Class QPdfWriter:

(since 6.9) QString author() const
(since 6.9) void setAuthor(const QString &author)

Class QQuickWidget:

(since 6.9) void setInitialProperties(const QVariantMap &initialProperties)

Class QRhi:

(since 6.9) QRhiShadingRateMap *newShadingRateMap()
(since 6.9) void setQueueSubmitParams(QRhiNativeHandles *params)
(since 6.9) QList<QSize> supportedShadingRates(int sampleCount) const

Class QRhiCommandBuffer:

(since 6.9) void setShadingRate(const QSize &coarsePixelSize)

Class QRhiSwapChain:

(since 6.9) void setShadingRateMap(QRhiShadingRateMap *map)
(since 6.9) QRhiShadingRateMap *shadingRateMap() const

Class QRhiTextureRenderTargetDescription:

(since 6.9) void setShadingRateMap(QRhiShadingRateMap *map)
(since 6.9) QRhiShadingRateMap *shadingRateMap() const

Class QShaderBaker:

(since 6.9) void setGlslOptions(QShaderBaker::GlslOptions options)

Class QSortFilterProxyModel:

(since 6.9) void beginFilterChange()

Class QString:

(since 6.9) QString operator+(QStringView lhs, const QString &rhs)
(since 6.9) QString operator+(const QString &lhs, QStringView rhs)

Class QStringList:

(since 6.9) QStringList filter(const QLatin1StringMatcher &matcher) const

Class QThread:

(since 6.9) QThread::QualityOfService serviceLevel() const
(since 6.9) void setServiceLevel(QThread::QualityOfService serviceLevel)

Class QTimerEvent:

(since 6.9) bool matches(const QBasicTimer &timer) const

New Macros

(since 6.9) Q_CONSTEXPR_DTOR
(since 6.9) Q_DECL_CONSTEXPR_DTOR
(since 6.9) Q_DECL_EQ_DELETE_X(reason)
(since 6.9) Q_DISABLE_COPY_MOVE_X(Class, reason)
(since 6.9) Q_DISABLE_COPY_X(Class, reason)
(since 6.9) Q_LIKELY_BRANCH
(since 6.9) Q_STATIC_LOGGING_CATEGORY(name, string, msgType)
(since 6.9) Q_STATIC_LOGGING_CATEGORY(name, string)
(since 6.9) Q_UNLIKELY_BRANCH

New Enum Types

(since 6.9) enum class NonceMode { Automatic, Enabled, Disabled }
(since 6.9) enum class LabelDrawingMode { UseStyle, UseDelegate }

New Enum Values

New Properties

New QML Types

New QML Properties

QML Type AbstractAxis:

(since 6.9) alignment : alignment

QML Type DynamicRigidBody:

(since 6.9) isSleeping : bool

QML Type Flickable:

(since 6.9) acceptedButtons : flags

QML Type FontMetrics:

(since 6.9) capitalHeight : real

QML Type GraphsView:

(since 6.9) plotArea : rect

QML Type OrbitCameraController:

(since 6.9) automaticClipping : bool

QML Type Path:

(since 6.9) asynchronous : bool

QML Type RandomInstancing:

(since 6.9) gridSpacing : vector3d

© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.