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
- New Global Functions
- New Enum Types
- New Enum Values
- New Properties
- New QML Types
- New QML Enumeration Types
- New QML Properties
- New QML Signals
- New QML Methods
New Classes
New Member Functions
Class QAbstractItemModel:
(since 6.12) Qt::weak_ordering | compareData(const QVariant &left, const QVariant &right, const QCollator *collator = nullptr) |
Class QAudioSink:
(since 6.12) int | nativePeriodFrameCount() const |
(since 6.12) void | setNativePeriodFrameCount(int frameCount) |
Class QAudioSource:
(since 6.12) int | nativePeriodFrameCount() const |
(since 6.12) void | setNativePeriodFrameCount(int frameCount) |
Class QCanvasGradient:
(since 6.12) void | addColorStop(float position, const QColor &color) |
(since 6.12) void | setImage(const QCanvasImage &image, int index = 0) |
Class QCanvasPainter:
(since 6.12) void | fill(QCanvasPainter::FillRule fillRule) |
(since 6.12) void | fill(const QCanvasPath &path, QCanvasPainter::FillRule fillRule, int pathGroup = -1) |
(since 6.12) void | setFillRule(QCanvasPainter::FillRule fillRule) |
Class QCanvasPath:
(since 6.12) void | addPath(QStringView svgPath, const QTransform &transform = QTransform()) |
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 QEasingCurve:
(since 6.12) QEasingCurve | cubicBezier(const QPointF &c1, const QPointF &c2) |
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 | maximumConnections() const |
(since 6.12) quint32 | maximumConnectionsPerHost() const |
(since 6.12) void | setMaximumConnections(quint32 maxConnections) |
(since 6.12) void | setMaximumConnectionsPerHost(quint32 maxConnections) |
Class QJsonObject:
(since 6.12) QJsonObject::const_iterator | cbegin() const |
(since 6.12) QJsonObject::const_iterator | cend() const |
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 QQmlComponent:
(since 6.12) void | setData(const QByteArray &data, const QUrl &url, QQmlComponent::CompilationMode compilationMode) |
Class QQmlEngine:
(since 6.12) bool | setExternalSingletonInstance(QAnyStringView moduleName, QAnyStringView typeName, QObject *instance) |
Class ItemAccess:
(since 6.12) bool | canDropMimeData(const QMimeData *data) |
(since 6.12) bool | canDropMimeData(const QMimeData *data, int action, int row, int column, const QModelIndex &parent) |
(since 6.12) auto | dropMimeData(const QMimeData *data, auto inserter) |
(since 6.12) auto | dropMimeData(const QMimeData *data, int action, int row, int column, const QModelIndex &parent, auto inserter) |
(since 6.12) Qt::ItemFlags | flags(const T &item) |
(since 6.12) QMimeData * | mimeData(const QModelIndex &range) |
(since 6.12) QMimeData * | mimeData(const auto &range) |
(since 6.12) QStringList | mimeTypes() |
Class RowOptions:
(since 6.12) bool | canDropMimeData(const QMimeData *data) |
(since 6.12) bool | canDropMimeData(const QMimeData *data, int action, int row, int column, const QModelIndex &parent) |
(since 6.12) auto | dropMimeData(const QMimeData *data, auto inserter) |
(since 6.12) auto | dropMimeData(const QMimeData *data, int action, int row, int column, const QModelIndex &parent, auto inserter) |
(since 6.12) Qt::ItemFlags | flags(const T &row) |
(since 6.12) QVariant | headerData(int section, int role) |
(since 6.12) QMimeData * | mimeData(const QModelIndex &range) |
(since 6.12) QMimeData * | mimeData(const auto &range) |
(since 6.12) QStringList | mimeTypes() |
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 QShaderVersion:
(since 6.12) size_t | qHash(QShaderVersion key, size_t seed) |
Class QSharedPointer:
(since 6.12) QSharedPointer<X> | qSharedPointerStaticCast(const QSharedPointer<T> &other) |
(since 6.12) QSharedPointer<X> | qSharedPointerStaticCast(QSharedPointer<T> &&other) |
(since 6.12) QSharedPointer<X> | qSharedPointerStaticCast(const QWeakPointer<T> &other) |
Class QSortFilterProxyModel:
(since 6.12) QSortFilterProxyModel::DataChangeRelevances | dataChangeRelevances(const QModelIndex &sourceTopLeft, const QModelIndex &sourceBottomRight, const QList<int> &roles) const |
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 QVector2D:
(since 6.12) size_t | qHash(QVector2D key, size_t seed = 0) |
Class QVector3D:
(since 6.12) size_t | qHash(QVector3D key, size_t seed = 0) |
Class QVector4D:
(since 6.12) size_t | qHash(QVector4D key, size_t seed = 0) |
Class QWebEngineProfile:
(since 6.12) void | setCryptoModulePasswordFunction(std::function<std::string (std::string, std::string, bool)> passwordFunction) |
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 | FillRule { NonZero, EvenOdd } |
(since 6.12) enum class | Status { Null, Searching, Finished } |
(since 6.12) enum class | DropOperation { DontDrop, Automatic, OverwriteAndIgnore, OverwriteAndExtend, InsertAsSiblings, InsertAsChildren } |
(since 6.12) enum class | DataChangeRelevance { NotRelevant, RelevantForFiltering, RelevantForSorting, RelevantForFilteringAndSorting } |
(since 6.12) enum class | MotionPreference { NoPreference, ReducedMotion } |
New Enum Values
| enum value | SatelliteSystem::IRNSS |
| enum value | SatelliteSystem::SBAS |
| enum value | StandardPixmap::SP_TabScrollDownButton |
| enum value | StandardPixmap::SP_TabScrollLeftButton |
| enum value | StandardPixmap::SP_TabScrollRightButton |
| enum value | StandardPixmap::SP_TabScrollUpButton |
New Properties
|
|
New QML Types
New QML Enumeration Types
(since 6.12) | FinishBehavior |
New QML Properties
QML Type AnimatedImage:
(since 6.12) | finishBehavior : enumeration |
(since 6.12) | loops : int |
QML Type DateTimeAxis:
(since 6.12) | tickCount : real |
QML Type DistanceJoint:
(since 6.12) | maxDistance : real |
(since 6.12) | minDistance : 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 Model:
(since 6.12) | instancingLodFactor : real |
QML Type PhysicsJoint:
(since 6.12) | bodyA : PhysicsBody* |
(since 6.12) | bodyB : PhysicsBody* |
(since 6.12) | orientationA : quaternion |
(since 6.12) | orientationB : quaternion |
(since 6.12) | positionA : vector3d |
(since 6.12) | positionB : vector3d |
QML Type PieSeries:
(since 6.12) | sliceData : list<real> |
(since 6.12) | sliceLabels : list<string> |
QML Type PrismaticJoint:
(since 6.12) | lowerLimit : real |
(since 6.12) | upperLimit : real |
QML Type RevoluteJoint:
(since 6.12) | angularLimitLower : real |
(since 6.12) | angularLimitUpper : real |
(since 6.12) | enableAngularLimit : bool |
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 SphericalJoint:
(since 6.12) | coneLimitY : real |
(since 6.12) | coneLimitZ : real |
(since 6.12) | enableConeLimit : bool |
QML Type ToolTip:
(since 6.12) | policy : enumeration |
QML Type VectorImage:
(since 6.12) | asynchronous : bool |
(since 6.12) | generatedItem : Item |
(since 6.12) | retainWhileLoading : bool |
(since 6.12) | status : bool |
QML Type WebEngineNavigationRequest:
(since 6.12) | userInitiated : bool |
New QML Signals
(since 6.12) | finished() |
(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.