Qt 6.12 の新しいクラスと関数

このページには、Qt 6.12 で導入されたすべての新しいクラスと関数の包括的な一覧が掲載されています。

新しいクラス

新しいメンバー関数

Q3DGraphsWidgetItem クラス :

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

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)

QAccessibleInterface クラス :

(since 6.12) QAccessibleViewportInterface *viewportInterface()

QAudioSink クラス :

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

QAudioSource クラス :

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

クラスQCanvasGradient :

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

クラス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)

クラスQCanvasPath :

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

クラス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)

クラスQCollator :

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

クラス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)

クラスQDialogButtonBox :

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

クラスQEasingCurve :

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

クラス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)

クラス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()

クラスQHash :

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

クラスQHostInfo :

(since 6.12) void clearCache()

クラスQHttpHeaderRangeSet :

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

クラスQHttpHeaderRangeSpec :

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

クラス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)

クラス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)

クラスQImageReader :

(since 6.12) QSize effectiveSize() const

クラスQJsonObject :

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

クラス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)

クラス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)

クラスQObject :

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

クラスQQmlEngine :

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

クラスSourceLocation :

(since 6.12) QQmlSA::SourceLocation documentOrigin()

クラスQQuick3DTextureProviderExtension :

(since 6.12) void surfaceChanged()

クラス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()

クラスRowOptions:

(since 6.12) bool canDropMimeData(const QMimeData*data)
(since 6.12) bool canDropMimeData(const QMimeData*data, intaction, introw, intcolumn, const QModelIndex&parent)
(since 6.12) auto dropMimeData(const QMimeData*data, autoinserter)
(since 6.12) auto dropMimeData(const QMimeData*data, intaction, introw, intcolumn, const QModelIndex&parent, autoinserter)
(since 6.12) Qt::ItemFlags flags(const T&row)
(since 6.12) QVariant headerData(intsection, introle)
(since 6.12) QMimeData *mimeData(const QModelIndex&range)
(since 6.12) QMimeData *mimeData(const auto&range)
(since 6.12) QStringList mimeTypes()

クラス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)

QRemoteObjectNode クラス :

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

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

QRhiTextureRenderTargetDescription クラス :

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

クラス `QSaveFile` :

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

クラスQSet :

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

クラスQShaderVersion :

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

クラス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)

クラスQSortFilterProxyModel :

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

クラス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)

クラスQTouchEventSequence :

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

クラスQTreeView :

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

クラスQVarLengthArray :

(since 6.12) void removeAt(qsizetype i)

クラスQVector2D :

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

クラスQVector3D :

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

クラスQVector4D :

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

クラスQWindow :

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

クラス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)

新しいグローバル関数

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

新しいマクロ

新しい列挙型

(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 }

新しい列挙値

新しい型エイリアス

新しいプロパティ

新しい変数

(since 6.12) const QOperatingSystemVersionBase MacOSGoldenGate

新しいQML型

新しいQML列挙型

(since 6.12) FinishBehavior

新しいQMLプロパティ

QML 型Accessible :

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

QML 型 `AnimatedImage`:

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

QML 型CaptureSession:

(since 6.12) nativeVideoSource : GStreamerVideoSource

QML 型DateTimeAxis :

(since 6.12) tickCount : real

QML タイプ `DistanceJoint`:

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

QML タイプExtendedSceneEnvironment:

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

QML タイプFolderListModel:

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

QML タイプGraphsItem3D :

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

QML タイプItem :

(since 6.12) mutabilityGroup : int

QML タイプ `LogValueAxis` :

(since 6.12) labelPostFormat : string

QML タイプLottieAnimation :

(since 6.12) currentFrame : int

QML タイプModel:

(since 6.12) instancingLodFactor : real

QML タイプ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 タイプPieSeries :

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

QML タイプPrismaticJoint :

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

QML タイプ `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 タイプRevoluteJoint:

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

QML タイプSceneEnvironment :

(since 6.12) skyMaterial : QtQuick3D::SkyMaterial

QML タイプScreenCapture :

(since 6.12) maximumFrameRate : real

QML タイプ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 タイプ `ShapePath` :

(since 6.12) strokeGradient : ShapeGradient

QML タイプ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 タイプ「SphericalJoint 」:

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

QML タイプToolTip :

(since 6.12) policy : enumeration

QML タイプValueAxis :

(since 6.12) labelPostFormat : string

QML タイプVectorImage :

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

QML タイプWindowCapture :

(since 6.12) maximumFrameRate : real

QML タイプXYSeries :

(since 6.12) values : list<variant>

新しい QML シグナル

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

新しい QML メソッド

QML タイプGraphsItem3D:

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

QML タイプ `Qt` :

(since 6.12) string escapeHtml(string data)

QML タイプ `RuntimeLoader`:

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

QML 型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 タイプ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.