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

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

新しいクラス

新しいメンバ関数

クラスQAbstract3DGraph

(since 6.3) bool hasSeries(QAbstract3DSeries *series) const

クラスQBluetoothDeviceInfo

(since 6.3) QMultiHash<QBluetoothUuid, QByteArray> serviceData() const
(since 6.3) QByteArray serviceData(const QBluetoothUuid &serviceId) const
(since 6.3) QList<QBluetoothUuid> serviceIds() const
(since 6.3) bool setServiceData(const QBluetoothUuid &serviceId, const QByteArray &data)

クラスQByteArray

(since 6.3) bool isValidUtf8() const

クラスQByteArrayList

(since 6.3) QByteArray join(QByteArrayView separator) const

クラスQByteArrayMatcher

(since 6.3) qsizetype indexIn(QByteArrayView data, qsizetype from) const

クラスQByteArrayView

(since 6.3) bool isValidUtf8() const
(since 6.3) double toDouble(bool *ok) const
(since 6.3) float toFloat(bool *ok) const
(since 6.3) int toInt(bool *ok, int base) const
(since 6.3) long toLong(bool *ok, int base) const
(since 6.3) qlonglong toLongLong(bool *ok, int base) const
(since 6.3) short toShort(bool *ok, int base) const
(since 6.3) uint toUInt(bool *ok, int base) const
(since 6.3) ulong toULong(bool *ok, int base) const
(since 6.3) qulonglong toULongLong(bool *ok, int base) const
(since 6.3) ushort toUShort(bool *ok, int base) const
(since 6.3) QByteArrayView trimmed() const

クラスQCborArray

(since 6.3) QCborArray fromJsonArray(QJsonArray &&array)

クラスQCborMap

(since 6.3) QCborMap fromJsonObject(QJsonObject &&obj)

クラスQCollator

(since 6.3) int defaultCompare(QStringView s1, QStringView s2)
(since 6.3) QCollatorSortKey defaultSortKey(QStringView key)

クラスQCryptographicHash

(since 6.3) QByteArrayView resultView() const

クラスQDebug

(since 6.3) QDebug operator<<(QDebug debug, const QVarLengthArray<T, P> &array)

クラスQDir

(since 6.3) bool mkdir(const QString &dirName, QFileDevice::Permissions permissions) const

クラスQDirIterator

(since 6.3) QFileInfo nextFileInfo()

クラスQDoubleValidator

(since 6.3) virtual void fixup(QString &input) const override

クラスQFile

(since 6.3) std::filesystem::path filesystemSymLinkTarget() const
(since 6.3) std::filesystem::path filesystemSymLinkTarget(const std::filesystem::path &fileName)
(since 6.3) bool open(QIODeviceBase::OpenMode mode, QFileDevice::Permissions permissions)

クラスQFontComboBox

(since 6.3) std::optional<QFont> displayFont(const QString &fontFamily) const
(since 6.3) QString sampleTextForFont(const QString &fontFamily) const
(since 6.3) QString sampleTextForSystem(QFontDatabase::WritingSystem writingSystem) const
(since 6.3) void setDisplayFont(const QString &fontFamily, const QFont &font)
(since 6.3) void setSampleTextForFont(const QString &fontFamily, const QString &sampleText)
(since 6.3) void setSampleTextForSystem(QFontDatabase::WritingSystem writingSystem, const QString &sampleText)

クラスQFontMetrics

(since 6.3) QRect boundingRect(const QString &text, const QTextOption &option) const
(since 6.3) int horizontalAdvance(const QString &text, const QTextOption &option) const
(since 6.3) QRect tightBoundingRect(const QString &text, const QTextOption &option) const

クラスQFontMetricsF

(since 6.3) QRectF boundingRect(const QString &text, const QTextOption &option) const
(since 6.3) qreal horizontalAdvance(const QString &text, const QTextOption &option) const
(since 6.3) QRectF tightBoundingRect(const QString &text, const QTextOption &option) const

クラスQInputDevice

(since 6.3) QStringList seatNames()

クラスQLatin1StringView

(since 6.3) qsizetype lastIndexOf(QChar ch, Qt::CaseSensitivity cs) const

クラスQLocalServer

(since 6.3) int listenBacklogSize() const
(since 6.3) void setListenBacklogSize(int size)

クラスQLocale

(since 6.3) QLocale::Language codeToLanguage(QStringView languageCode, QLocale::LanguageCodeTypes codeTypes)
(since 6.3) QString languageToCode(QLocale::Language language, QLocale::LanguageCodeTypes codeTypes)

クラスQEGLContext

(since 6.3) virtual EGLConfig config() const = 0
(since 6.3) virtual EGLDisplay display() const = 0

クラスQNetworkInformation

(since 6.3) bool loadDefaultBackend()
(since 6.3) QNetworkInformation::Features supportedFeatures() const

クラスQNetworkReply

(since 6.3) void requestSent()
(since 6.3) void socketStartedConnecting()

クラスQObject

(since 6.3) QList<T> findChildren(Qt::FindChildOptions options) const

クラスQOpcUaClient

(since 6.3) QOpcUaHistoryReadResponse *readHistoryData(const QOpcUaHistoryReadRawRequest &request)

クラスQOpcUaLocalizedText

(since 6.3) QDebug operator<<(QDebug debug, const QOpcUaLocalizedText &text)

クラスQOpcUaNode

(since 6.3) QOpcUaHistoryReadResponse *readHistoryRaw(const QDateTime &startTime, const QDateTime &endTime, quint32 numValues, bool returnBounds)

クラスQOpcUaQualifiedName

(since 6.3) QDebug operator<<(QDebug debug, const QOpcUaQualifiedName &name)

クラスQProcessEnvironment

(since 6.3) bool inheritsFromParent() const

クラスQQuickItem

(since 6.3) void dumpItemTree() const
(since 6.3) void ensurePolished()

クラスQQuickRenderTarget

(since 6.3) qreal devicePixelRatio() const
(since 6.3) void setDevicePixelRatio(qreal ratio)

クラスQRegularExpressionMatch

(since 6.3) bool hasCaptured(QAnyStringView name) const
(since 6.3) bool hasCaptured(int nth) const

クラスQSemaphore

(since 6.3) bool tryAcquire(int n, std::chrono::duration<Rep, Period> timeout)
(since 6.3) bool try_acquire()
(since 6.3) bool try_acquire_for(const std::chrono::duration<Rep, Period> &timeout)
(since 6.3) bool try_acquire_until(const std::chrono::time_point<Clock, Duration> &tp)

クラスQString

(since 6.3) qsizetype lastIndexOf(QChar ch, Qt::CaseSensitivity cs) const

クラスQStringView

(since 6.3) qsizetype lastIndexOf(QChar c, Qt::CaseSensitivity cs) const

クラスQTableWidgetSelectionRange

(since 6.3) bool operator!=(const QTableWidgetSelectionRange &lhs, const QTableWidgetSelectionRange &rhs)
(since 6.3) bool operator==(const QTableWidgetSelectionRange &lhs, const QTableWidgetSelectionRange &rhs)

クラスQTcpServer

(since 6.3) int listenBacklogSize() const
(since 6.3) void setListenBacklogSize(int size)

クラスQThreadPool

(since 6.3) void startOnReservedThread(QRunnable *runnable)
(since 6.3) void startOnReservedThread(Callable &&callableToRun)

クラスQUrl

(since 6.3) QString fromAce(const QByteArray &domain, QUrl::AceProcessingOptions options)
(since 6.3) QByteArray toAce(const QString &domain, QUrl::AceProcessingOptions options)

クラスQUtf8StringView

(since 6.3) bool isValidUtf8() const

クラスQVarLengthArray

(since 6.3) QVarLengthArray<T, Prealloc>::iterator emplace(QVarLengthArray<T, Prealloc>::const_iterator pos, Args &&... args)
(since 6.3) T &emplace_back(Args &&... args)

クラスQWidget

(since 6.3) QAction *addAction(const QString &text)
(since 6.3) QAction *addAction(const QIcon &icon, const QString &text)
(since 6.3) QAction *addAction(const QString &text, const QKeySequence &shortcut)
(since 6.3) QAction *addAction(const QIcon &icon, const QString &text, const QKeySequence &shortcut)
(since 6.3) QAction *addAction(const QString &text, Args &&... args)
(since 6.3) QAction *addAction(const QIcon &icon, const QString &text, Args &&... args)
(since 6.3) QAction *addAction(const QString &text, const QKeySequence &shortcut, Args &&... args)
(since 6.3) QAction *addAction(const QIcon &icon, const QString &text, const QKeySequence &shortcut, Args &&... args)
(since 6.3) QAction *addAction(const QString &text, const QObject *receiver, const char *member, Qt::ConnectionType type)
(since 6.3) QAction *addAction(const QIcon &icon, const QString &text, const QObject *receiver, const char *member, Qt::ConnectionType type)
(since 6.3) QAction *addAction(const QString &text, const QKeySequence &shortcut, const QObject *receiver, const char *member, Qt::ConnectionType type)
(since 6.3) QAction *addAction(const QIcon &icon, const QString &text, const QKeySequence &shortcut, const QObject *receiver, const char *member, Qt::ConnectionType type)

名前空間内の新しい関数

(since 6.3) void failOnWarning(const char *message)
(since 6.3) void failOnWarning(const QRegularExpression &messagePattern)
(since 6.3) QFuture<OutputSequence> whenAll(InputIt first, InputIt last)
(since 6.3) QFuture<OutputSequence> whenAll(Futures &&... futures)
(since 6.3) QFuture<QtFuture::WhenAnyResult<T>> whenAny(InputIt first, InputIt last)
(since 6.3) QFuture<std::variant<std::decay_t<Futures>...>> whenAny(Futures &&... futures)

新しいグローバル関数

(since 6.3) const char *qWebEngineChromiumSecurityPatchVersion()

新しいマクロ

(since 6.3) QT_TRID_N_NOOP(id)
(since 6.3) QVERIFY_THROWS_EXCEPTION(exceptiontype, ...)
(since 6.3) QVERIFY_THROWS_NO_EXCEPTION(...)
(since 6.3) Q_APPLICATION_STATIC(Type, VariableName, ...)
(since 6.3) Q_GADGET_EXPORT(EXPORT_MACRO)

新しい列挙型

(since 6.3) enum class TransportMedium { Unknown, Ethernet, Cellular, WiFi, Bluetooth }
(since 6.3) enum Initialization { InheritFromParent }
(since 6.3) enum AceProcessingOption { IgnoreIDNWhitelist, AceTransitionalProcessing }

新しい列挙型の値

新しいプロパティ

新しい変数

(since 6.3) MacOSMonterey
(since 6.3) Windows10_1809
(since 6.3) Windows10_1903
(since 6.3) Windows10_1909
(since 6.3) Windows10_2004
(since 6.3) Windows10_20H2
(since 6.3) Windows10_21H1
(since 6.3) Windows10_21H2
(since 6.3) Windows11

新しいQML型

新しいQMLプロパティ

QMLタイプBar3DSeries

(since 6.3) rowColors : list<ThemeColor>

QMLタイプBars3D

(since 6.3) barSeriesMargin : size

QML TypeFileInstancing

(since 6.3) instanceCount : int

QML TypeHeightMapSurfaceDataProxy

(since 6.3) autoScaleY : real
(since 6.3) maxYValue : real
(since 6.3) minYValue : real

QML TypeHoverHandler

(since 6.3) blocking : bool

QMLタイプInstanceList

(since 6.3) instanceCount : int

QMLタイプParticleSystem3DLogging

(since 6.3) timeDeviation : real

QMLタイプSpriteParticle3D

(since 6.3) lights : list<Light>
(since 6.3) offsetX : float
(since 6.3) offsetY : float

QMLタイプSurface3DSeries

(since 6.3) wireframeColor : color

QMLタイプTextMetrics

(since 6.3) renderType : enumeration

QMLタイプWheelHandler

(since 6.3) blocking : bool

新しいQMLメソッド

QML タイプAbstractGraph3D

(since 6.3) bool hasSeries(Abstract3DSeries series)

QMLタイプInstancing

(since 6.3) color instanceColor(int index)
(since 6.3) vector3d instanceCustomData(int index)
(since 6.3) vector3d instancePosition(int index)
(since 6.3) quaternion instanceRotation(int index)
(since 6.3) vector3d instanceScale(int index)

QML TypeItem

(since 6.3) dumpItemTree()

QML TypeTestCase

(since 6.3) failOnWarning(message)

本ドキュメントに含まれる文書の著作権は、それぞれの所有者に帰属します 本書で提供されるドキュメントは、Free Software Foundation が発行したGNU Free Documentation License version 1.3に基づいてライセンスされています。 Qtおよびそれぞれのロゴは、フィンランドおよびその他の国におけるThe Qt Company Ltd.の 商標です。その他すべての商標は、それぞれの所有者に帰属します。