New Classes and Functions in Qt 6.3

This page contains a comprehensive list of all new classes and functions introduced in Qt 6.3. Links to new APIs in previous Qt 6 releases are found at the bottom of this page.

New Classes

New Member Functions

Class QBluetoothDeviceInfo:

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

Class QByteArray:

bool isValidUtf8() const

Class QByteArrayList:

QByteArray join(QByteArrayView separator) const

Class QByteArrayMatcher:

qsizetype indexIn(QByteArrayView data, qsizetype from) const

Class QByteArrayView:

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

Class QCborArray:

QCborArray fromJsonArray(QJsonArray &&array)

Class QCborMap:

QCborMap fromJsonObject(QJsonObject &&obj)

Class QCollator:

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

Class QCryptographicHash:

QByteArrayView resultView() const

Class QDebug:

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

Class QDirIterator:

QFileInfo nextFileInfo()

Class QDir:

bool mkdir(const QString &dirName, QFile::Permissions permissions) const

Class QFile:

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

Class QLatin1String:

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

Class QLocale:

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

Class QObject:

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

Class QProcessEnvironment:

bool inheritsFromParent() const

Class QRegularExpressionMatch:

bool hasCaptured(const QString &name) const
bool hasCaptured(QStringView name) const
bool hasCaptured(int nth) const

Class QSemaphore:

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

Class QString:

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

Class QStringView:

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

Class QThreadPool:

void startOnReservedThread(QRunnable *runnable)
void startOnReservedThread(std::function<void ()> functionToRun)

Class QUrl:

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

Class QUtf8StringView:

bool isValidUtf8() const

Class QVarLengthArray:

QVarLengthArray::iterator emplace(QVarLengthArray::const_iterator pos, Args &&... args)
T &emplace_back(Args &&... args)

Class QAbstract3DGraph:

bool hasSeries(QAbstract3DSeries *series) const

Class QDoubleValidator:

virtual void fixup(QString &input) const override

Class QFontMetrics:

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

Class QFontMetricsF:

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

Class QInputDevice:

QStringList seatNames()

Class QEGLContext:

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

Class QLocalServer:

int listenBacklogSize() const
void setListenBacklogSize(int size)

Class QNetworkInformation:

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

Class QNetworkReply:


Class QTcpServer:

int listenBacklogSize() const
void setListenBacklogSize(int size)

Class QOpcUaClient:

QOpcUaHistoryReadResponse *readHistoryData(const QOpcUaHistoryReadRawRequest &request)

Class QOpcUaLocalizedText:

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

Class QOpcUaNode:

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

Class QOpcUaQualifiedName:

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

Class QQuickItem:

void dumpItemTree() const
void ensurePolished()

Class QQuickRenderTarget:

qreal devicePixelRatio() const
void setDevicePixelRatio(qreal ratio)

Class QFontComboBox:

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

Class QTableWidgetSelectionRange:

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

Class QWidget:

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

New Functions in Namespaces

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

New Macros

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

New Enum Types

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

New Properties

New Variables

New QML Types

New QML Properties

New QML Methods

Additions to Other Qt 6 Releases

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