New Classes and Functions in Qt 6.2 | Qt 6.4

- Qt 6.4
- What's new in Qt 6
- New Classes and Functions in Qt 6.2
- Qt 6.4.1 Reference Documentation

# 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
- New Classes
- New Member Functions
- New Functions in Namespaces
- New Enum Types
- New Properties
- New Variables
- New QML Types

### New Namespaces

`(preliminary)` namespace | QtAndroidPrivate

### New Classes

A
  QAndroidActivityResultReceiver
  QAndroidBinder
  QAndroidIntent
  QAndroidParcel
  QAndroidService
  QAndroidServiceConnection

C
  QColorAxis

R
  QRgbaFloat

X
  QX11Application (QNativeInterface)

### New Member Functions

Class QAbstractAxis:

void | labelsTruncatedChanged(bool labelsTruncated)
void | truncateLabelsChanged(bool truncateLabels)

Class QBarSet:

void | deselectAllBars()
void | deselectBar(int index)
void | deselectBars(const QList<int> &indexes)
bool | isBarSelected(int index) const
void | selectAllBars()
void | selectBar(int index)
void | selectBars(const QList<int> &indexes)
QList<int> | selectedBars() const
QColor | selectedColor() const
void | setBarSelected(int index, bool selected)
void | setSelectedColor(const QColor &color)
void | toggleSelection(const QList<int> &indexes)

Class QBluetoothDeviceDiscoveryAgent:

void | errorOccurred(QBluetoothDeviceDiscoveryAgent::Error error)

Class QBluetoothDeviceInfo:

void | setName(const QString &name)

Class QBluetoothLocalDevice:

void | errorOccurred(QBluetoothLocalDevice::Error error)

Class QBluetoothServer:

void | errorOccurred(QBluetoothServer::Error error)

Class QBluetoothServiceDiscoveryAgent:

void | errorOccurred(QBluetoothServiceDiscoveryAgent::Error error)

Class QBluetoothSocket:

void | errorOccurred(QBluetoothSocket::SocketError error)

Class QByteArrayView:

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

Class QCanBusDeviceInfo:

QString | plugin() const

Class QColorSpace:

QString | description() const
void | setDescription(const QString &description)

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 QLegend:

void | attachedToChartChanged(bool attached)
bool | isInteractive() const
void | setInteractive(bool interactive)

Class QLowEnergyCharacteristic:

QLowEnergyDescriptor | clientCharacteristicConfiguration() const

Class QLowEnergyController:

QLowEnergyController * | createPeripheral(const QBluetoothAddress &localDevice, QObject *parent)
void | errorOccurred(QLowEnergyController::Error newError)
int | mtu() const

Class QLowEnergyService:

void | errorOccurred(QLowEnergyService::ServiceError newError)

Class QNdefFilter:

bool | match(const QNdefMessage &message) const

Class QNdefMessage:

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

Class QNearFieldManager:

bool | isEnabled() const
void | setUserInformation(const QString &message)
void | targetDetectionStopped()

Class QNetworkAddressEntry:

QDebug | operator<<(QDebug debug, const QNetworkAddressEntry &entry)

Class QPixmap:

QSizeF | deviceIndependentSize() const

Class QSqlQuery:

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

Class QStringView:

int | lastIndexOf(QStringView, Qt::CaseSensitivity) const
int | lastIndexOf(QLatin1StringView, Qt::CaseSensitivity) const
int | lastIndexOf(const QRegularExpression &, QRegularExpressionMatch *) const

Class QXYSeries:

int | bestFitLineEquation(bool &) const
void | clearPointConfiguration(const int index)
void | clearPointConfiguration(const int index, const QXYSeries::PointConfiguration key)
void | clearPointsConfiguration()
void | clearPointsConfiguration(const QXYSeries::PointConfiguration key)
void | colorBy(const QList<qreal> &sourceData, const QLinearGradient &gradient)
void | deselectAllPoints()
void | deselectPoint(int index)
void | deselectPoints(const QList<int> &indexes)
bool | isPointSelected(int index)
const QImage & | lightMarker() const
void | lightMarkerChanged(const QImage &lightMarker)
qreal | markerSize() const
QHash<QXYSeries::PointConfiguration, QVariant> | pointConfiguration(const int index) const
QHash<int, QHash<QXYSeries::PointConfiguration, QVariant>> | pointsConfiguration() const
void | selectAllPoints()
void | selectPoint(int index)
void | selectPoints(const QList<int> &indexes)
const QImage & | selectedLightMarker() const
QList<int> | selectedPoints() const
void | setLightMarker(const QImage &lightMarker)
void | setMarkerSize(qreal size)
void | setPointConfiguration(const int index, const QHash<QXYSeries::PointConfiguration, QVariant> &configuration)
void | setPointConfiguration(const int index, const QXYSeries::PointConfiguration key, const QVariant &value)
void | setPointSelected(int index, bool selected)
void | setPointsConfiguration(const QHash<int, QHash<QXYSeries::PointConfiguration, QVariant>> &pointsConfiguration)
void | setSelectedLightMarker(const QImage &selectedLightMarker)
void | sizeBy(const QList<qreal> &sourceData, const qreal minSize, const qreal maxSize)
void | toggleSelection(const QList<int> &indexes)

### New Functions in Namespaces

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)
`(preliminary)` QFuture<QtAndroidPrivate::PermissionResult> | requestPermission(const QString &permission)
`(preliminary)` QFuture<QtAndroidPrivate::PermissionResult> | requestPermission(QtAndroidPrivate::PermissionType permission)
void | startActivity(const QJniObject &intent, int receiverRequestCode, int 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 | RubberBand { NoRubberBand, VerticalRubberBand, HorizontalRubberBand, RectangleRubberBand, ClickThroughRubberBand }
enum | DiscoveryMode { FullDiscovery, SkipValueDiscovery }
enum class | BindFlag { None, AutoCreate, DebugUnbind, NotForeground, AboveClient, …, ExternalService }

### New Properties

- bestFitLineColor : const
- bestFitLineVisible : const
- selectedColor : const

### New Variables

| CCCDDisable
| CCCDEnableIndication
| CCCDEnableNotification

### New QML Types

A
  Attractor3D

D
  Dialog
  Direction3D

F
  FileDialog
  FontDialog

G
  Gravity3D

P
  Particle3D
  ParticleSystem3DLogging
  PointRotator3D

S
  StandardPaths

T
  TrailEmitter3D

W
  Wander3D