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

このページでは、Qt 6.2 で導入されたすべての新しいクラスと関数の包括的なリストを掲載しています。

新しい名前空間

(preliminary) 名前空間 QtAndroidPrivate

新しいクラス

新しいメンバー関数

クラスQAbstractAxis

(since 6.2) 無効 labelsTruncatedChanged(boollabelsTruncated)
(since 6.2) 無効 truncateLabelsChanged(booltruncateLabels)

クラスQAbstractProxyModel

(since 6.2) QModelIndex createSourceIndex(introw, intcol, void*internalPtr) const

クラスQAbstractSocket

(since 6.2) ブール bind(QHostAddress::SpecialAddressaddr, quint16port, QAbstractSocket::BindModemode)

クラスQBarSet

(since 6.2) ボイド deselectAllBars()
(since 6.2) 空白 deselectBar(intindex)
(since 6.2) void deselectBars(const QList<int>&indexes)
(since 6.2) ブール isBarSelected(intindex) const
(since 6.2) void selectAllBars()
(since 6.2) void selectBar(intindex)
(since 6.2) void selectBars(const QList<int>&indexes)
(since 6.2) QList<int> selectedBars() const
(since 6.2) QColor selectedColor() const
(since 6.2) void setBarSelected(intindex, boolselected)
(since 6.2) void setSelectedColor(const QColor&color)
(since 6.2) void toggleSelection(const QList<int>&indexes)

クラスQBluetoothDeviceDiscoveryAgent

(since 6.2) 無効 errorOccurred(QBluetoothDeviceDiscoveryAgent::Errorerror)

クラスQBluetoothDeviceInfo

(since 6.2) 無効 setName(const QString&name)

クラスQBluetoothLocalDevice

(since 6.2) 無効 errorOccurred(QBluetoothLocalDevice::Errorエラー)

クラスQBluetoothServer

(since 6.2) 無効 errorOccurred(QBluetoothServer::Errorエラー)

クラスQBluetoothServiceDiscoveryAgent

(since 6.2) 無効 errorOccurred(QBluetoothServiceDiscoveryAgent::Errorerror)

クラスQBluetoothSocket

(since 6.2) 無効 errorOccurred(QBluetoothSocket::SocketErrorerror)

クラスQByteArray

(since 6.2) qsizetype lastIndexOf(QByteArrayViewbv) const

クラスQByteArrayView

(since 6.2) int compare(QByteArrayViewbv, Qt::CaseSensitivitycs) const
(since 6.2) qsizetype lastIndexOf(QByteArrayViewbv) const

クラスQCanBusDevice

(since 6.2) 仮想QCanBusDeviceInfo deviceInfo() const

クラスQCanBusDeviceInfo

(since 6.2) QString plugin() const

クラスQColorSpace

(since 6.2) QString description() const
(since 6.2) void setDescription(const QString&description)

クラスQFileInfo

(since 6.2) 標準::ファイルシステム::パス filesystemJunctionTarget() const
(since 6.2) QString junctionTarget() const

クラスQFlags

(since 6.2) QFlags<T> fromInt(QFlags<T>::Inti)
(since 6.2) ブール operator!=(Enumlhs, QFlags<T>rhs)
(since 6.2) ブール operator!=(QFlags<T>lhs, Enumrhs)
(since 6.2) ブール operator!=(QFlags<T>lhs, QFlags<T>rhs)
(since 6.2) QFlags<T> operator&(QFlags<T>mask) const
(since 6.2) QFlags<T> & (QFlags<T> mask)operator&=(QFlags<T>mask)
(since 6.2) ブール operator==(Enumlhs, QFlags<T>rhs)
(since 6.2) ブール operator==(QFlags<T>lhs, Enumrhs)
(since 6.2) ブール operator==(QFlags<T>lhs, QFlags<T>rhs)
(since 6.2) size_t qHash(QFlags<Enum>key, size_tseed)
(since 6.2) ブール testAnyFlag(Enumフラグ) const
(since 6.2) ブール testAnyFlags(QFlags<T>flags) const
(since 6.2) ブール testFlags(QFlags<T>flags) const
(since 6.2) QFlags<T>::Int toInt() const

クラスQGeoAddress

(since 6.2) QGeoAddress & (QGeoAddress &other)operator=(QGeoAddress&other)
(since 6.2) 無効 setStreetNumber(const QString&streetNumber)
(since 6.2) QString streetNumber() const
(since 6.2) void swap(QGeoAddress&other)

クラスQGeoAreaMonitorInfo

(since 6.2) QGeoAreaMonitorInfo &(QGeoAreaMonitorInfo &&other)operator=(QGeoAreaMonitorInfo&&other)
(since 6.2) 無効 swap(QGeoAreaMonitorInfo&other)

クラスQGeoAreaMonitorSource

(since 6.2) 仮想 QVariant backendProperty(const QString&name) const
(since 6.2) 仮想ブール setBackendProperty(const QString&name, const QVariant&value)

クラスQGeoCoordinate

(since 6.2) QGeoCoordinate &operator=(QGeoCoordinate&&other)
(since 6.2) 無効 swap(QGeoCoordinate&other)

クラスQGeoLocation

(since 6.2) QGeoShape boundingShape() const
(since 6.2) QGeoLocation &(QGeoLocation &&other)operator=(QGeoLocation&&other)
(since 6.2) 無効 setBoundingShape(const QGeoShape&boundingShape)
(since 6.2) void swap(QGeoLocation&other)

クラスQGeoPositionInfo

(since 6.2) QGeoPositionInfo &(QGeoPositionInfo &&other)operator=(QGeoPositionInfo&&other)
(since 6.2) 無効 swap(QGeoPositionInfo&other)

クラスQGeoSatelliteInfo

(since 6.2) QGeoSatelliteInfo & (QGeoSatelliteInfo &&other)operator=(QGeoSatelliteInfo&&other)
(since 6.2) 無効 swap(QGeoSatelliteInfo&other)

クラスQGeoSatelliteInfoSource

(since 6.2) 仮想 QVariant backendProperty(const QString&name) const
(since 6.2) 仮想ブール setBackendProperty(const QString&name, const QVariant&value)

クラスQGraphicsSceneEvent

(since 6.2) quint64 timestamp() const

クラスQGraphicsSceneWheelEvent

(since 6.2) ブール isInverted() const
(since 6.2) Qt::ScrollPhase phase() const
(since 6.2) QPoint pixelDelta() const

クラスQImage

(since 6.2) QSizeF deviceIndependentSize() const
(since 6.2) QImage fromData(QByteArrayViewdata, const char*format)
(since 6.2) ブール loadFromData(QByteArrayViewデータ, const char*format)

クラスQJSEngine

(since 6.2) QJSValue newSymbol(const QString&name)

クラスQJniEnvironment

(since 6.2) jfieldID findField(jclassclazz, const char*fieldName, const char*signature)
(since 6.2) jmethodID findMethod(jclassclazz, const char*methodName, const char*signature)
(since 6.2) jfieldID findStaticField(jclassclazz, const char*fieldName, const char*signature)
(since 6.2) jmethodID findStaticMethod(jclassclazz, const char*methodName, const char*シグニチャ)
(since 6.2) ブール isValid() const

クラスQJniObject

(since 6.2) QByteArray className() const
(since 6.2) jclass objectClass() const

クラスQLatin1StringView

(since 6.2) qsizetype lastIndexOf(QLatin1StringViewl1, Qt::CaseSensitivitycs) const
(since 6.2) qsizetype lastIndexOf(QStringViewstr, Qt::CaseSensitivitycs) const

クラスQLegend

(since 6.2) 無効 attachedToChartChanged(boolattached)
(since 6.2) ブール isInteractive() const
(since 6.2) void setInteractive(boolインタラクティブ)

クラスQLocale

(since 6.2) QLocale::Territory codeToTerritory(QStringViewテリトリーコード)
(since 6.2) QString nativeTerritoryName() const
(since 6.2) QLocale::Territory territory() const
(since 6.2) QString territoryToCode(QLocale::Territory領域)
(since 6.2) QString territoryToString(QLocale::Territory領域)

クラスQLockFile

(since 6.2) 無効 setStaleLockTime(std::chrono::millisecondsstaleLockTime)
(since 6.2) std::chrono::milliseconds staleLockTimeAsDuration() const
(since 6.2) ブール tryLock(std::chrono::millisecondstimeout)

クラスQLowEnergyCharacteristic

(since 6.2) QLowEnergyDescriptor clientCharacteristicConfiguration() const

クラスQLowEnergyController

(since 6.2) QLowEnergyController *(QBluetoothアドレス &ローカルデバイス、QObject *parentcreatePeripheral(const QBluetoothAddress&localDevice, QObject*parent)
(since 6.2) void errorOccurred(QLowEnergyController::ErrornewError)
(since 6.2) int mtu() const

クラスQLowEnergyService

(since 6.2) 無効 errorOccurred(QLowEnergyService::サービスエラーnewError)

クラスQMetaMethod

(since 6.2) ブール isConst() const

クラスQMetaObject

(since 6.2) QMetaType metaType() const

クラスQModbusRtuSerialServer

(since 6.2) int interFrameDelay() const
(since 6.2) void setInterFrameDelay(intマイクロ秒)

クラスQNativeGestureEvent

(since 6.2) QPointF delta() const
(since 6.2) int fingerCount() const

クラスQAndroidApplication

(since 6.2) QJniObject context()
(since 6.2) 無効 hideSplashScreen(intduration)
(since 6.2) ブール isActivityContext()
(since 6.2) QFuture<QVariant runOnAndroidMainThread(const std::function<QVariant ()>&runnable, const QDeadlineTimertimeout)
(since 6.2) int sdkVersion()

クラスQNdefFilter

(since 6.2) ブール match(const QNdefMessage&message) const

クラスQNdefMessage

(since 6.2) QNdefMessage &operator=(QNdefMessage&&other)
(since 6.2) QNdefMessage &(QNdefMessage &&other)operator=(const QNdefMessage&other)

クラスQNdefRecord

(since 6.2) ボイド clear()

クラスQNearFieldManager

(since 6.2) ブール isEnabled() const
(since 6.2) void setUserInformation(const QString&message)
(since 6.2) void targetDetectionStopped()

クラスQNetworkAddressEntry

(since 6.2) QDebug operator<<(QDebugdebug, const QNetworkAddressEntry&entry)

クラスQNetworkRequest

(since 6.2) qint64 decompressedSafetyCheckThreshold() const
(since 6.2) void setDecompressedSafetyCheckThreshold(qint64しきい値)

クラスQPixmap

(since 6.2) QSizeF deviceIndependentSize() const

クラスQQmlContext

(since 6.2) QObject * (const QString &name)objectForName(const QString&name) const

クラスQQmlListReference

(since 6.2) qsizetype size() const

クラスQQuickItemGrabResult

(since 6.2) ブール saveToFile(const QUrl&filePath) const

クラスQQuickRenderTarget

(since 6.2) QQuickRenderTarget fromOpenGLRenderBuffer(uintrenderbufferId, const QSize&pixelSize, intsampleCount)

クラスQSqlQuery

(since 6.2) QSqlQuery &operator=(QSqlQuery&&other)
(since 6.2) ボイド swap(QSqlQuery&other)

クラスQSqlQueryModel

(since 6.2) void setQuery(QSqlQuery&&query)

クラスQString

(since 6.2) qsizetype lastIndexOf(QLatin1StringViewstr, Qt::CaseSensitivitycs) const
(since 6.2) qsizetype lastIndexOf(QStringViewstr, Qt::CaseSensitivitycs) const
(since 6.2) qsizetype lastIndexOf(const QRegularExpression&re, QRegularExpressionMatch*rmatch) const
(since 6.2) qsizetype lastIndexOf(const QString&str, Qt::CaseSensitivitycs) const

クラスQStringView

(since 6.2) qsizetype lastIndexOf(const QRegularExpression&re, QRegularExpressionMatch*rmatch) const
(since 6.2) qsizetype lastIndexOf(QLatin1StringViewl1, Qt::CaseSensitivitycs) const
(since 6.2) qsizetype lastIndexOf(QStringViewstr, Qt::CaseSensitivitycs) const

クラスQTimeZone

(since 6.2) QLocale::Territory territory() const

クラスQUntypedBindable

(since 6.2) QMetaType metaType() const

クラスQWaylandBufferRef

(since 6.2) ブール hasProtectedContent() const

クラスQWebEnginePage

(since 6.2) void loadingChanged(const QWebEngineLoadingInfo&loadingInfo)
(since 6.2) void navigationRequested(QWebEngineNavigationRequest&request)
(since 6.2) void newWindowRequested(QWebEngineNewWindowRequest&request)

クラスQWebEngineProfile

(since 6.2) void requestIconForIconURL(const QUrl&url, intdesiredSizeInPixel, std::function<void (const QIcon &, const QUrl &)>iconAvailableCallback) const
(since 6.2) void requestIconForPageURL(const QUrl&url, intdesiredSizeInPixel, std::function<void (const QIcon &, const QUrl &, const QUrl &)>iconAvailableCallback) const

クラスQWebEngineView

(since 6.2) QWebEngineView * (const QWebEnginePage *page)forPage(const QWebEnginePage*page)
(since 6.2) QWebEngineContextMenuRequest * (const QWebEnginePage *page)lastContextMenuRequest() const
(since 6.2) void pdfPrintingFinished(const QString&filePath, boolsuccess)
(since 6.2) void print(QPrinter*printer)
(since 6.2) void printFinished(成功)
(since 6.2) void printRequested()
(since 6.2) void printToPdf(const QString&filePath, const QPageLayout&layout, const QPageRanges&ranges)
(since 6.2) void printToPdf(const std::function<void (const QByteArray &)>&resultCallback, const QPageLayout&layout, const QPageRanges&ranges)

クラスQWebSocket

(since 6.2) void alertReceived(QSsl::AlertLevel level, QSsl::AlertTypetype, const QString&description)
(since 6.2) void alertSent(QSsl::AlertLevellevel, QSsl::AlertTypetype, const QString&description)
(since 6.2) void continueInterruptedHandshake()
(since 6.2) void handshakeInterruptedOnError(const QSslError&error)
(since 6.2) void peerVerifyError(const QSslError&error)

クラスQWebSocketServer

(since 6.2) void alertReceived(QSsl::AlertLevel level, QSsl::AlertTypetype, const QString&description)
(since 6.2) void alertSent(QSsl::AlertLevellevel, QSsl::AlertTypetype, const QString&description)
(since 6.2) void handshakeInterruptedOnError(const QSslError&error)

クラスQXYSeries

(since 6.2) QPair<qreal, qreal>. bestFitLineEquation(bool&ok) const
(since 6.2) void clearPointConfiguration(const intindex)
(since 6.2) void clearPointConfiguration(const intindex, const QXYSeries::PointConfigurationkey)
(since 6.2) void clearPointsConfiguration()
(since 6.2) void clearPointsConfiguration(const QXYSeries::PointConfigurationkey)
(since 6.2) void colorBy(const QList<qreal>&sourceData, const QLinearGradient&gradient)
(since 6.2) void deselectAllPoints()
(since 6.2) void deselectPoint(intindex)
(since 6.2) void deselectPoints(const QList<int>&indexes)
(since 6.2) ブール isPointSelected(intindex)
(since 6.2) コンストラクタ QImage &lightMarker() const
(since 6.2) void lightMarkerChanged(const QImage&lightMarker)
(since 6.2) qreal markerSize() const
(since 6.2) QHash<QXYSeries::PointConfiguration, QVariant>. pointConfiguration(const intindex) const
(since 6.2) QXYSeries::PointsConfigurationHash pointsConfiguration() const
(since 6.2) void selectAllPoints()
(since 6.2) void selectPoint(intindex)
(since 6.2) void selectPoints(const QList<int>&indexes)
(since 6.2) const QImage &selectedLightMarker() const
(since 6.2) QList<int selectedPoints() const
(since 6.2) void setLightMarker(const QImage&lightMarker)
(since 6.2) void setMarkerSize(qrealsize)
(since 6.2) void setPointConfiguration(const intindex, const QHash<QXYSeries::PointConfiguration, QVariant>&configuration)
(since 6.2) void setPointConfiguration(const intindex, const QXYSeries::PointConfigurationkey, const QVariant&value)
(since 6.2) void setPointSelected(intindex, boolselected)
(since 6.2) void setPointsConfiguration(const QHash<int, QHash<QXYSeries::PointConfiguration, QVariant>>&pointsConfiguration)
(since 6.2) void setSelectedLightMarker(const QImage&selectedLightMarker)
(since 6.2) void sizeBy(const QList<qreal>&sourceData, const qrealminSize, const qrealmaxSize)
(since 6.2) void toggleSelection(const QList<int>&indexes)

名前空間の新しい関数

(since 6.2) ボイド beginPropertyUpdateGroup()
(since 6.2) ブール bindService(const QAndroidIntent&serviceIntent, const QAndroidServiceConnection&serviceConnection, QtAndroidPrivate::BindFlagsflags)
(preliminary) QFuture<QtAndroidPrivate::PermissionResult> (const QString &permission) checkPermission(const QString&permission)
(since 6.2) 無効 endPropertyUpdateGroup()
(preliminary) QFuture<QtAndroidPrivate::PermissionResult> (const QString &permission) requestPermission(const QString&permission)
(since 6.2) void startActivity(const QJniObject&intent, intreceiverRequestCode, std::function<void (int, int, const QJniObject &)>callbackFunc)
(since 6.2) void startActivity(const QJniObject&intent, intreceiverRequestCode, QAndroidActivityResultReceiver*resultReceiver)
(since 6.2) void startActivity(const QAndroidIntent&intent, intReceiverRequestCode, QAndroidActivityResultReceiver*resultReceiver)
(since 6.2) void startIntentSender(const QJniObject&intentSender, intReceiverRequestCode, QAndroidActivityResultReceiver*resultReceiver)

新しいグローバル機能

(since 6.2) std::underlying_type_t<列挙型 qToUnderlying(Enume)
(since 6.2) const char *()qWebEngineChromiumVersion()
(since 6.2) const char * ()qWebEngineVersion()

新しいマクロ

(since 6.2) PRIXQUINTPTR
(since 6.2) PRIdQINTPTR
(since 6.2) PRIdQPTRDIFF
(since 6.2) PRIdQSIZETYPE
(since 6.2) PRIiQINTPTR
(since 6.2) PRIiQPTRDIFF
(since 6.2) PRIiQSIZETYPE
(since 6.2) PRIoQUINTPTR
(since 6.2) PRIuQUINTPTR
(since 6.2) PRIxQUINTPTR
(since 6.2) Q_IMPORT_QML_PLUGIN(プラグイン名)

新しい列挙型

(since 6.2) 列挙 RubberBand{ NoRubberBand, VerticalRubberBand, HorizontalRubberBand, RectangleRubberBand, ClickThroughRubberBand }.
(since 6.2) 列挙 SocketOption{NoOptions, AbstractNamespaceOption }.
(since 6.2) enum DiscoveryMode{FullDiscovery, SkipValueDiscovery } enum
(since 6.2) enum EditFlag{CanUndo, CanRedo, CanCut, CanCopy, CanPaste, ..., CanEditRichly }.
(since 6.2) enum MediaFlag{MediaInError, MediaPaused, MediaMuted, MediaLoop, MediaCanSave, ..., MediaCanRotate }.
(since 6.2) enum MediaType{MediaTypeNone, MediaTypeImage, MediaTypeVideo, MediaTypeAudio, MediaTypeCanvas, ..., MediaTypePlugin }.
(since 6.2) 列挙クラス PointConfiguration{Color, Size, Visibility, LabelVisibility, LabelFormat }.
(since 6.2) enum class BindFlag{None, AutoCreate, DebugUnbind, NotForeground, AboveClient, ..., ExternalService }.

新しい列挙型の値

新規物件

新しい変数

(since 6.2) CCCDDisable
(since 6.2) CCCDEnableIndication
(since 6.2) CCCDEnableNotification

新しいQMLタイプ

新しいQMLプロパティ

QML タイプColorGroup

(since 6.2) placeholderTextカラー

QMLタイプImage

(since 6.2) mirrorVerticallyブール

QMLタイプSystemPalette

(since 6.2) placeholderTextカラー

QMLタイプTableView

(since 6.2) selectionModelアイテム選択モデル

QMLタイプTexture

(since 6.2) autoOrientationブール

新しいQMLメソッド

QML型Locale

(since 6.2) 文字列 formattedDataSize(intbytes, intprecision, DataSizeFormatformat)

QMLタイプTableView

(since 6.2) 実数 columnWidth(intcolumn)
(since 6.2) リアル implicitColumnWidth(intカラム)
(since 6.2) real implicitRowHeight(introw)
(since 6.2) ブール isColumnLoaded(int)
(since 6.2) ブール isRowLoaded(int)
(since 6.2) 実数 rowHeight(int)

QMLタイプView3D

(since 6.2) リスト pickAll(floatx, floaty)
(since 6.2) ピック結果 rayPick(vector3d原点, vector3d方向)
(since 6.2) リスト rayPickAll(vector3d原点, vector3d方向)

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