Neue Klassen und Funktionen in Qt 6.12

Diese Seite enthält eine umfassende Liste aller neuen Klassen und Funktionen, die in Qt 6.12 eingeführt wurden.

Neue Klassen

Neue Mitgliederfunktionen

Klasse „ Q3DGraphsWidgetItem “:

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

Klasse „ QAbstractItemModel “:

(since 6.12) Qt::weak_ordering compareData(const QVariant &left, const QVariant &right)
(since 6.12) Qt::weak_ordering compareData(const QVariant &left, const QVariant &right, const QCollator &collator)

Klasse „ QAccessibleInterface “:

(since 6.12) QAccessibleViewportInterface *viewportInterface()

Klasse „ QAudioSink “:

(since 6.12) qsizetype nativePeriodFrameCount() const
(since 6.12) void setNativePeriodFrameCount(qsizetype frameCount)

Klasse „ QAudioSource “:

(since 6.12) qsizetype nativePeriodFrameCount() const
(since 6.12) void setNativePeriodFrameCount(qsizetype frameCount)

Klasse „ QCanvasGradient “:

(since 6.12) void addColorStop(qreal position, QColor color)
(since 6.12) void setImage(const QCanvasImage &image, int index = 0)

Klasse „ 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)

Klasse „ QCanvasPath “:

(since 6.12) void addPath(QStringView svgPath, const QTransform &transform = QTransform())

Klasse „ QCanvasRadialGradient “:

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

Klasse „ QCollator “:

(since 6.12) bool operator!=(const QCollator &lhs, const QCollator &rhs)
(since 6.12) bool operator==(const QCollator &lhs, const QCollator &rhs)

Klasse „ QCollatorSortKey “:

(since 6.12) bool operator!=(const QCollatorSortKey &lhs, const QCollatorSortKey &rhs)
(since 6.12) bool operator<(const QCollatorSortKey &lhs, const QCollatorSortKey &rhs)
(since 6.12) bool operator<=(const QCollatorSortKey &lhs, const QCollatorSortKey &rhs)
(since 6.12) bool operator==(const QCollatorSortKey &lhs, const QCollatorSortKey &rhs)
(since 6.12) bool operator>(const QCollatorSortKey &lhs, const QCollatorSortKey &rhs)
(since 6.12) bool operator>=(const QCollatorSortKey &lhs, const QCollatorSortKey &rhs)

Klasse „ QDialogButtonBox “:

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

Klasse „ QEasingCurve “:

(since 6.12) QEasingCurve fromCubicBezier(QPointF c1, QPointF c2)

Klasse „ QGrpcCallOptions “:

(since 6.12) std::optional<quint64> maximumReceiveMessageSize() const
(since 6.12) std::optional<QtGrpc::CompressionAlgorithm> requestCompression() const
(since 6.12) QGrpcCallOptions &setMaximumReceiveMessageSize(quint64 size)
(since 6.12) QGrpcCallOptions &setRequestCompression(QtGrpc::CompressionAlgorithm algorithm)

Klasse „ QGrpcChannelOptions “:

(since 6.12) QtGrpc::CompressionAlgorithms acceptedCompressionAlgorithms() const
(since 6.12) std::optional<quint64> maximumReceiveMessageSize() const
(since 6.12) std::optional<QtGrpc::CompressionAlgorithm> requestCompression() const
(since 6.12) QGrpcChannelOptions &setAcceptedCompressionAlgorithms(QtGrpc::CompressionAlgorithms algorithms)
(since 6.12) QGrpcChannelOptions &setMaximumReceiveMessageSize(quint64 size)
(since 6.12) QGrpcChannelOptions &setRequestCompression(QtGrpc::CompressionAlgorithm algorithm)
(since 6.12) QtGrpc::CompressionAlgorithms supportedCompressionAlgorithms()

Klasse „ QHash “:

(since 6.12) size_t qHash(const std::optional<T> &key, size_t seed = 0)

Klasse „ QHostInfo “:

(since 6.12) void clearCache()

Klasse „ QHttpHeaderRangeSet “:

(since 6.12) QDebug operator<<(QDebug debug, const QHttpHeaderRangeSet &ranges)

Klasse „ QHttpHeaderRangeSpec “:

(since 6.12) QDebug operator<<(QDebug debug, const QHttpHeaderRangeSpec &range)
(since 6.12) size_t qHash(QHttpHeaderRangeSpec key, size_t seed = 0)

Klasse QHttpHeaders:

(since 6.12) QDataStream &operator<<(QDataStream &out, const QHttpHeaders &headers)
(since 6.12) QDataStream &operator>>(QDataStream &in, QHttpHeaders &headers)
(since 6.12) std::optional<QHttpHeaderRangeSet> rangeValues() const
(since 6.12) void setRangeValues(const QHttpHeaderRangeSet &ranges)

Klasse „ 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 maxPerHost)

Klasse „ QImageReader “:

(since 6.12) QSize effectiveSize() const

Klasse „ QJsonObject “:

(since 6.12) QJsonObject::const_iterator cbegin() const
(since 6.12) QJsonObject::const_iterator cend() const

Klasse „ 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)

Klasse „ 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)

Klasse „ QObject “:

(since 6.12) bool disconnect(QMetaObject::Connection &connection)
(since 6.12) bool disconnect(QMetaObject::Connection &&connection)

Klasse „ QQmlEngine “:

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

Klasse „ SourceLocation “:

(since 6.12) QQmlSA::SourceLocation documentOrigin()

Klasse „ QQuick3DTextureProviderExtension “:

(since 6.12) void surfaceChanged()

Klasse „ 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()

Klasse „ 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 Abschnitt, int Rolle)
(since 6.12) QMimeData *mimeData(const QModelIndex&range)
(since 6.12) QMimeData *mimeData(const auto&range)
(since 6.12) QStringList mimeTypes()

Klasse „ QRangeModelAdapter “:

(since 6.12) auto at(const QModelIndex &index)
(since 6.12) auto at(const QModelIndex &index) const
(since 6.12) QVariant data(const QModelIndex &index) const
(since 6.12) QVariant data(const QModelIndex &index, int role) const
(since 6.12) bool hasChildren(const QModelIndex &index) const
(since 6.12) int rowCount(const QModelIndex &index) const
(since 6.12) bool setData(const QModelIndex &index, const QVariant &value, int role = Qt::EditRole)

Klasse „ QRemoteObjectNode “:

(since 6.12) void persistedStoreChanged(QRemoteObjectAbstractPersistedStore *persistedStore)
(since 6.12) void registryUrlChanged(const QUrl &registryUrl)

Klasse „ 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))

Klasse „ QRhiTextureRenderTargetDescription “:

(since 6.12) int depthLayer() const
(since 6.12) void setDepthLayer(int depthLayer)

Klasse „ QSaveFile “:

(since 6.12) virtual QFileDevice::Permissions permissions() const override
(since 6.12) virtual bool setPermissions(QFileDevice::Permissions permissions) override

Klasse „ QSet “:

(since 6.12) QSet<T>::iterator insert(QSet<T>::const_iterator it, T &&value)
(since 6.12) QList<T> values() &&

Klasse „ QShaderVersion “:

(since 6.12) size_t qHash(QShaderVersion key, size_t seed)

Klasse „ QSharedPointer “:

(since 6.12) QSharedPointer<X> qSharedPointerStaticCast(const QSharedPointer<T> &other)
(since 6.12) QSharedPointer<X> qSharedPointerStaticCast(const QWeakPointer<T> &other)
(since 6.12) QSharedPointer<X> qSharedPointerStaticCast(QSharedPointer<T> &&other)

Klasse „ QSortFilterProxyModel “:

(since 6.12) QSortFilterProxyModel::DataChangeRelevanceFlags dataChangeRelevanceFlags(const QModelIndex &sourceTopLeft, const QModelIndex &sourceBottomRight, const QList<int> &roles) const

Klasse „ QSslConfiguration “:

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

Klasse „ QTouchEventSequence “:

(since 6.12) bool cancel(bool processEvents = true)

Klasse „ QTreeView “:

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

Klasse „ QVarLengthArray “:

(since 6.12) void removeAt(qsizetype i)

Klasse „ QVector2D “:

(since 6.12) size_t qHash(QVector2D key, size_t seed = 0)

Klasse „ QVector3D “:

(since 6.12) size_t qHash(QVector3D key, size_t seed = 0)

Klasse „ QVector4D “:

(since 6.12) size_t qHash(QVector4D key, size_t seed = 0)

Klasse „ QWindow “:

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

Klasse „ qfloat16 “:

(since 6.12) qfloat16 operator+(qfloat16 a)
(since 6.12) qfloat16 &operator++()
(since 6.12) qfloat16 operator++(int)
(since 6.12) qfloat16 &operator--()
(since 6.12) qfloat16 operator--(int)

Neue globale Funktionen

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

Neue Makros

Neue Enum-Typen

(since 6.12) enum class FillRule { NonZero, EvenOdd }
(technology preview) enum class WarningSeverity { Disable, Info, Warning, Error }
(since 6.12) enum MutabilityGroup { AutoMutabilityGroup, StaticMutabilityGroup, ModerateMutabilityGroup, DynamicMutabilityGroup }
(since 6.12) enum class DropOperation { DontDrop, Automatic, OverwriteAndIgnore, OverwriteAndExtend, InsertAsSiblings, InsertAsChildren }
(since 6.12) enum class DataChangeRelevanceFlag { NotRelevant, RelevantForFiltering, RelevantForSorting, RelevantForFilteringAndSorting }
(since 6.12) enum class ValueMapping { X, Y }
(since 6.12) enum class MotionPreference { NoPreference, ReducedMotion }
(since 6.12) enum class DragMode { Rotate, Pan }
(since 6.12) enum class CompressionAlgorithm { Identity, Deflate, Gzip }

Neue Enum-Werte

Neue Typ-Aliase

Neue Eigenschaften

Neue Variablen

(since 6.12) const QOperatingSystemVersionBase MacOSGoldenGate

Neue QML-Typen

Neue QML-Aufzählungstypen

(since 6.12) FinishBehavior

Neue QML-Eigenschaften

QML-Typ „ Accessible “:

(since 6.12) expandable : bool
(since 6.12) expanded : bool

QML-Typ- AnimatedImage:

(since 6.12) finishBehavior : enumeration
(since 6.12) loops : int

QML-Typ- CaptureSession:

(since 6.12) nativeVideoSource : GStreamerVideoSource

QML-Typ- DateTimeAxis:

(since 6.12) tickCount : real

QML-Typ „ DistanceJoint “:

(since 6.12) maxDistance : real
(since 6.12) minDistance : real

QML-Typ „ ExtendedSceneEnvironment “:

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

QML-Typ „ FolderListModel “:

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

QML-Typ „ GraphsItem3D “:

(since 6.12) dragMode : Graphs3D.DragMode
(since 6.12) panEnabled : bool

QML-Typ „ Item “:

(since 6.12) mutabilityGroup : int

QML-Typ „ LogValueAxis “:

(since 6.12) labelPostFormat : string

QML-Typ „ LottieAnimation “:

(since 6.12) currentFrame : int

QML-Typ „ Model “:

(since 6.12) instancingLodFactor : real

QML-Typ „ 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-Typ „ PieSeries “:

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

QML-Typ „ PrismaticJoint “:

(since 6.12) lowerLimit : real
(since 6.12) upperLimit : real

QML-Typ „ QuadTextureProvider “:

(since 6.12) format : enumeration
(since 6.12) fragmentShader : url
(since 6.12) fragmentShaderCode : string
(since 6.12) height : int
(since 6.12) width : int

QML-Typ „ RevoluteJoint “:

(since 6.12) angularLimitLower : real
(since 6.12) angularLimitUpper : real
(since 6.12) enableAngularLimit : bool

QML-Typ „ SceneEnvironment “:

(since 6.12) skyMaterial : QtQuick3D::SkyMaterial

QML-Typ „ ScreenCapture “:

(since 6.12) maximumFrameRate : real

QML-Typ „ 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-Typ ShapePath:

(since 6.12) strokeGradient : ShapeGradient

QML-Typ „ SkyMaterial “:

(since 6.12) enableIBL : bool
(since 6.12) fragmentShader : url
(since 6.12) fragmentShaderCode : string
(since 6.12) iblRenderFrames : int
(since 6.12) iblSampleCount : int
(since 6.12) radianceMapSize : int
(since 6.12) skyboxMode : enumeration

QML-Typ „ SphericalJoint “:

(since 6.12) coneLimitY : real
(since 6.12) coneLimitZ : real
(since 6.12) enableConeLimit : bool

QML-Typ „ ToolTip “:

(since 6.12) policy : enumeration

QML-Typ „ ValueAxis “:

(since 6.12) labelPostFormat : string

QML-Typ „ VectorImage “:

(since 6.12) asynchronous : bool
(since 6.12) generatedItem : Item
(since 6.12) retainWhileLoading : bool
(since 6.12) status : enumeration

QML-Typ „ WindowCapture “:

(since 6.12) maximumFrameRate : real

QML-Typ „ XYSeries “:

(since 6.12) values : list<variant>

Neue QML-Signale

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

Neue QML-Methoden

QML-Typ „ GraphsItem3D “:

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

QML-Typ- Qt:

(since 6.12) string escapeHtml(string data)

QML-Typ- RuntimeLoader:

(since 6.12) Object3D query(string arg)
(since 6.12) List<Object3D> queryAll(QueryFilter filter)

QML-Typ- 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-Typ „ TreeModel “:

(since 6.12) void insertRow(int rowIndex, object row)
(since 6.12) void insertRow(int rowIndex, QModelIndex parent, object row)
(since 6.12) bool moveRows(QModelIndex sourceParent, int sourceRow, int count, QModelIndex destinationParent, int destinationChild)

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