New Classes and Functions in Qt 6.0 | Qt 6.4

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

# New Classes and Functions in Qt 6.0

The section provides a comprehensive list of all new classes and functions introduced in Qt 6.0.

- New Namespaces
- New Classes
- New Member Functions
- New Functions in Namespaces
- New Global Functions
- New Macros
- New Enum Types
- New Type Aliases
- New Properties
- New Variables

### New Namespaces

namespace | QNativeInterface
namespace | QQuickOpenGLUtils

### New Classes

A
  QAction
  QActionGroup
  QAdoptSharedDataTag
  QAndroidOffscreenSurface (QNativeInterface)
  QAnyStringView
  QAxBaseObject
  QAxBaseWidget
  QAxObjectInterface

B
  QByteArrayView

C
  QCocoaGLContext (QNativeInterface)
  QConstIterator

E
  QEGLContext (QNativeInterface)
  QEventPoint

G
  QGLXContext (QNativeInterface)

I
  QInputDevice
  QIterable
  QIterator

K
  QKeyCombination

M
  QMetaSequence

P
  QPageRanges
  QPartialOrdering
  QPromise

Q
  QQuickGraphicsDevice

S
  QStringTokenizer

T
  QTaggedIterator
  QTaskBuilder (QtConcurrent)

W
  QWGLContext (QNativeInterface)

### New Member Functions

Class QAction:

QList<QObject *> | associatedObjects() const

Class QBitmap:

QBitmap | fromPixmap(const QPixmap &pixmap)

Class QBluetoothDeviceInfo:

QList<QBluetoothUuid> | serviceUuids() const

Class QCanBusDeviceInfo:

QString | alias() const

Class QChar:

QChar | fromUcs2(char16_t c)
auto | fromUcs4(char32_t c)

Class QDataStream:

QDataStream & | operator<<(char16_t c)
QDataStream & | operator<<(char32_t c)
QDataStream & | operator<<(QDataStream &out, const int &pair)
QDataStream & | operator>>(char16_t &c)
QDataStream & | operator>>(char32_t &c)
QDataStream & | operator>>(QDataStream &in, int &pair)

Class QDebug:

QDebug & | operator<<(int s)
QDebug & | operator<<(const char16_t *t)
QDebug & | operator<<(QByteArrayView t)
QString | toString(T &&object)

Class QExplicitlySharedDataPointer:

T * | get() const
void | reset(T *ptr)

Class QFuture:

bool | isSuspended() const
bool | isSuspending() const
bool | isValid() const
QFuture<T> | onFailed(Function &&handler)
void | setSuspended(bool suspend)
void | suspend()
T | takeResult()
QFuture<ResultType<Function>> | then(Function &&function)
QFuture<ResultType<Function>> | then(QtFuture::Launch policy, Function &&function)
QFuture<ResultType<Function>> | then(QThreadPool *pool, Function &&function)
void | toggleSuspended()

Class QImageIOHandler:

bool | allocateImage(QSize size, QImage::Format format, QImage *image)

Class QImageReader:

int | allocationLimit()
void | setAllocationLimit(int mbLimit)

Class QList:

void | append(QList<T> &&value)
QList<T> | first(int n) const
QList<T> | last(int n) const
QList<T> | operator+(QList<T> &&other) const
QList<T> & | operator+=(QList<T> &&other)
QList<T> & | operator<<(QList<T> &&other)
QList<T> | sliced(int pos, int n) const
QList<T> | sliced(int pos) const

Class QMap:

QMap::iterator | erase(QMap::const_iterator first, QMap::const_iterator last)
int | toStdMap() &&

Class QMetaSequence:

QMetaSequence | fromContainer()

Class QMetaType:

int | alignOf() const
QPartialOrdering | compare(const void *lhs, const void *rhs) const
bool | equals(const void *lhs, const void *rhs) const
bool | hasRegisteredDebugStreamOperator() const
bool | hasRegisteredMutableViewFunction()
bool | registerMutableView(To (From::*)() __attribute__((thiscall)) function)
bool | registerMutableView(UnaryFunction function)
bool | view(QMetaType fromType, void *from, QMetaType toType, void *to)

Class QMultiMap:

QMultiMap::iterator | erase(QMultiMap::const_iterator first, QMultiMap::const_iterator last)

Class QPagedPaintDevice:

QPageRanges | pageRanges() const
virtual void | setPageRanges(const QPageRanges &ranges)

Class QPointer:

T * | get() const

Class QRect:

QRect | span(const QPoint &p1, const QPoint &p2)

Class QSharedDataPointer:

T * | get()
const T * | get() const
void | reset(T *ptr)
T * | take()

Class QSqlQuery:

QVariantList | boundValues() const

Class QStringListModel:

virtual bool | clearItemData(const QModelIndex &index) override

Class QStringTokenizer:

int | qTokenize(Haystack &&haystack, Needle &&needle, Flags... flags)

Class QStringView:

QStringView::const_pointer | constData() const
int | count(QChar, Qt::CaseSensitivity) const
int | count(QStringView, Qt::CaseSensitivity) const
QStringView | first(int n) const
QStringView | last(int n) const
QStringView | sliced(int pos, int n) const
QStringView | sliced(int pos) 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
int | tokenize(Needle &&sep, Flags... flags) const

Class QSurfaceFormat:

void | setColorSpace(const QColorSpace &colorSpace)

Class QUnhandledException:

int | exception() const
void | swap(QUnhandledException &other)

Class QVarLengthArray:

QVarLengthArray<T, Prealloc> & | operator=(QVarLengthArray<T, Prealloc> &&other)

### New Functions in Namespaces

void | resetOpenGLState()
QTaskBuilder<Task> | task(Task &&task)

### New Global Functions

long double | qDegreesToRadians(long double degrees)

### New Macros

| QT_IMPLICIT_QCHAR_CONSTRUCTION

### New Enum Types

enum class | Launch { Sync, Async, Inherit }

### New Type Aliases

| iterator
| iterator

### New Properties

- readOnly : const

### New Variables

| MacOSBigSur