New Classes and Functions in Qt 6.12

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

New Classes

New Member Functions

Class QCanvasGradient:

(since 6.12) void addColorStop(float position, const QColor &color)

Class QCanvasRadialGradient:

(since 6.12) QPointF innerCenterPosition() const
(since 6.12) QPointF outerCenterPosition() const
(since 6.12) void setInnerCenterPosition(float x, float y)
(since 6.12) void setInnerCenterPosition(QPointF center)
(since 6.12) void setOuterCenterPosition(float x, float y)
(since 6.12) void setOuterCenterPosition(QPointF center)

Class QDialogButtonBox:

(since 6.12) QKeySequence standardButtonShortcut(QDialogButtonBox::StandardButton button)
(since 6.12) QString standardButtonText(QDialogButtonBox::StandardButton button)

Class QHostInfo:

(since 6.12) void clearCache()

Class QHttpHeaders:

(since 6.12) QDataStream &operator<<(QDataStream &out, const QHttpHeaders &headers)
(since 6.12) QDataStream &operator>>(QDataStream &in, QHttpHeaders &headers)
(since 6.12) QList<QHttpHeaderRange> rangeValues(bool *ok = nullptr) const
(since 6.12) void setRangeValues(QSpan<const QHttpHeaderRange> ranges)

Class QHttpServerConfiguration:

(since 6.12) quint32 maximumConnectionsPerHost() const
(since 6.12) void setMaximumConnectionsPerHost(quint32 maxConnections)

Class QMap:

(since 6.12) bool operator<(const QMap<Key, T> &lhs, const QMap<Key, T> &rhs)
(since 6.12) bool operator<=(const QMap<Key, T> &lhs, const QMap<Key, T> &rhs)
(since 6.12) auto operator<=>(const QMap<Key, T> &lhs, const QMap<Key, T> &rhs)
(since 6.12) bool operator>(const QMap<Key, T> &lhs, const QMap<Key, T> &rhs)
(since 6.12) bool operator>=(const QMap<Key, T> &lhs, const QMap<Key, T> &rhs)

Class QMultiMap:

(since 6.12) bool operator<(const QMultiMap<Key, T> &lhs, const QMultiMap<Key, T> &rhs)
(since 6.12) bool operator<=(const QMultiMap<Key, T> &lhs, const QMultiMap<Key, T> &rhs)
(since 6.12) auto operator<=>(const QMultiMap<Key, T> &lhs, const QMultiMap<Key, T> &rhs)
(since 6.12) bool operator>(const QMultiMap<Key, T> &lhs, const QMultiMap<Key, T> &rhs)
(since 6.12) bool operator>=(const QMultiMap<Key, T> &lhs, const QMultiMap<Key, T> &rhs)

Class QQmlEngine:

(since 6.12) bool setExternalSingletonInstance(QAnyStringView moduleName, QAnyStringView typeName, QObject *instance)

Class QRhiCommandBuffer:

(since 6.12) void drawIndexedIndirect(QRhiBuffer *indirectBuffer, quint32 indirectBufferOffset, quint32 drawCount, quint32 stride = sizeof(QRhiIndexedIndirectDrawCommand))
(since 6.12) void drawIndirect(QRhiBuffer *indirectBuffer, quint32 indirectBufferOffset, quint32 drawCount, quint32 stride = sizeof(QRhiIndirectDrawCommand))

Class QSslConfiguration:

(since 6.12) QList<QSslKeyingMaterial> keyingMaterial() const
(since 6.12) std::optional<QSslKeyingMaterial> keyingMaterial(const QSslKeyingMaterial &material) const
(since 6.12) void setKeyingMaterial(const QList<QSslKeyingMaterial> &keyMaterial)

Class QTreeView:

(since 6.12) QRect itemDecorationRect(const QModelIndex &index) const

Class QVarLengthArray:

(since 6.12) void removeAt(qsizetype i)

Class QWindow:

(since 6.12) void setFramePosition(int x, int y)

New Global Functions

(since 6.12) auto compareThreeWay(const std::pair<T1, T2> &lhs, const std::pair<U1, U2> &rhs)

New Enum Types

(since 6.12) enum class Status { Null, Searching, Finished }
(since 6.12) enum class MotionPreference { NoPreference, ReducedMotion }

New Enum Values

New Properties

New QML Types

New QML Properties

QML Type DateTimeAxis:

(since 6.12) tickCount : real

QML Type ExtendedSceneEnvironment:

(since 6.12) ssrMaxSteps : int
(since 6.12) ssrThickness : real

QML Type FolderListModel:

(since 6.12) showDot : bool
(since 6.12) showDotDot : bool

QML Type GraphsItem3D:

(since 6.12) panEnabled : bool
(since 6.12) panModeEnabled : bool

QML Type PieSeries:

(since 6.12) sliceData : list<real>
(since 6.12) sliceLabels : list<string>

QML Type SearchField:

(since 6.12) cursorPosition : int
(since 6.12) placeholderText : string
(since 6.12) selectTextByMouse : bool
(since 6.12) selectedText : string
(since 6.12) selectionEnd : int
(since 6.12) selectionStart : int

QML Type ShapePath:

(since 6.12) strokeGradient : ShapeGradient

QML Type ToolTip:

(since 6.12) policy : enumeration

QML Type WebEngineNavigationRequest:

(since 6.12) userInitiated : bool

New QML Signals

(since 6.12) sliceDataChanged(list<real> sliceData)
(since 6.12) sliceLabelsChanged(list<string> sliceLabels)
(since 6.12) tickCountChanged(real count)

New QML Methods

QML Type GraphsItem3D:

(since 6.12) void setPanButton(Qt::MouseButtons button)

QML Type Qt:

(since 6.12) string escapeHtml(string data)

QML Type SearchField:

(since 6.12) void deselect()
(since 6.12) void select(int start, int end)
(since 6.12) void selectAll()
(since 6.12) void selectWord()

QML Type TreeModel:

(since 6.12) void insertRow(int rowIndex, object row)
(since 6.12) void insertRow(int rowIndex, QModelIndex parent, object row)

© 2026 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.