New Classes and Functions in Qt 6.2

This page contains a comprehensive list of all new classes and functions introduced in Qt 6.2.

New Namespaces

(preliminary) namespace QtAndroidPrivate

New Classes

New Member Functions

Class QBluetoothDeviceInfo:

void setName(const QString &name)

Class QByteArrayView:

int compare(QByteArrayView bv, Qt::CaseSensitivity cs) const
qsizetype lastIndexOf(QByteArrayView bv) const

Class QCanBusDevice:

virtual QCanBusDeviceInfo deviceInfo() const

Class QCanBusDeviceInfo:

QString plugin() const

Class QGeoAddress:

QGeoAddress &operator=(QGeoAddress &other)
void setStreetNumber(const QString &streetNumber)
QString streetNumber() const

Class QGeoAreaMonitorInfo:

QGeoAreaMonitorInfo &operator=(QGeoAreaMonitorInfo &&other)

Class QGeoLocation:

QGeoShape boundingShape() const
QGeoLocation &operator=(QGeoLocation &&other)
void setBoundingShape(const QGeoShape &boundingShape)

Class QGeoPositionInfo:

QGeoPositionInfo &operator=(QGeoPositionInfo &&other)

Class QGeoSatelliteInfo:

QGeoSatelliteInfo &operator=(QGeoSatelliteInfo &&other)

Class QGraphicsSceneEvent:

quint64 timestamp() const

Class QGraphicsSceneWheelEvent:

bool isInverted() const
Qt::ScrollPhase phase() const
QPoint pixelDelta() const

Class QJniEnvironment:

jfieldID findField(jclass clazz, const char *fieldName, const char *signature)
jmethodID findMethod(jclass clazz, const char *methodName, const char *signature)
jfieldID findStaticField(jclass clazz, const char *fieldName, const char *signature)
jmethodID findStaticMethod(jclass clazz, const char *methodName, const char *signature)
bool isValid() const

Class QJniObject:

QByteArray className() const
jclass objectClass() const

Class QLockFile:

void setStaleLockTime(std::chrono::milliseconds value)
std::chrono::milliseconds staleLockTimeAsDuration() const
bool tryLock(std::chrono::milliseconds timeout)

Class QLowEnergyCharacteristic:

QLowEnergyDescriptor clientCharacteristicConfiguration() const

Class QNdefFilter:

bool match(const QNdefMessage &message) const

Class QNdefMessage:

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

Class QNdefRecord:

void clear()

Class QPixmap:

QSizeF deviceIndependentSize() const

Class QSqlQuery:

QSqlQuery &operator=(QSqlQuery &&other)
void swap(QSqlQuery &other)

Class QStringView:

qsizetype lastIndexOf(QStringView str, Qt::CaseSensitivity cs) const
qsizetype lastIndexOf(QLatin1StringView l1, Qt::CaseSensitivity cs) const
qsizetype lastIndexOf(const QRegularExpression &re, QRegularExpressionMatch *rmatch) const

Class QUntypedBindable:

QMetaType metaType() const

Class QWaylandBufferRef:

bool hasProtectedContent() const

Class QWebSocket:

void alertReceived(QSsl::AlertLevel level, QSsl::AlertType type, const QString &description)
void alertSent(QSsl::AlertLevel level, QSsl::AlertType type, const QString &description)
void continueInterruptedHandshake()
void handshakeInterruptedOnError(const QSslError &error)
void peerVerifyError(const QSslError &error)

Class QWebSocketServer:

void alertReceived(QSsl::AlertLevel level, QSsl::AlertType type, const QString &description)
void alertSent(QSsl::AlertLevel level, QSsl::AlertType type, const QString &description)
void handshakeInterruptedOnError(const QSslError &error)

New Functions in Namespaces

void beginPropertyUpdateGroup()
bool bindService(const QAndroidIntent &serviceIntent, const QAndroidServiceConnection &serviceConnection, QtAndroidPrivate::BindFlags flags)
(preliminary) QFuture<QtAndroidPrivate::PermissionResult> checkPermission(const QString &permission)
(preliminary) QFuture<QtAndroidPrivate::PermissionResult> checkPermission(QtAndroidPrivate::PermissionType permission)
void endPropertyUpdateGroup()
(preliminary) QFuture<QtAndroidPrivate::PermissionResult> requestPermission(const QString &permission)
(preliminary) QFuture<QtAndroidPrivate::PermissionResult> requestPermission(QtAndroidPrivate::PermissionType permission)
void startActivity(const QJniObject &intent, int receiverRequestCode, std::function<void (int, int, const QJniObject &)> callbackFunc)
void startActivity(const QAndroidIntent &intent, int receiverRequestCode, QAndroidActivityResultReceiver *resultReceiver)
void startActivity(const QJniObject &intent, int receiverRequestCode, QAndroidActivityResultReceiver *resultReceiver)
void startIntentSender(const QJniObject &intentSender, int receiverRequestCode, QAndroidActivityResultReceiver *resultReceiver)

New Enum Types

enum class BindFlag { None, AutoCreate, DebugUnbind, NotForeground, AboveClient, …, ExternalService }

New Variables

New QML Types