- Qt 6.5
- What's new in Qt 6
- New Classes and Functions in Qt 6.5
- Qt 6.5.3 Reference Documentation

# New Classes and Functions in Qt 6.5

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

- New Namespaces
- New Classes
- New Member Functions
- New Functions in Namespaces
- New Macros
- New Enum Types
- New Type Aliases
- New Properties
- New Variables
- New QML Types
- New QML Properties
- New QML Signals
- New QML Methods

### New Namespaces

namespace | QtCanBus
namespace | QtProtobuf

### New Classes

A
  QAbstractGrpcChannel
  QAbstractGrpcClient
  QAbstractGrpcCredentials
  QAbstractProtobufSerializer
  QAccessibleSelectionInterface

B
  QBluetoothPermission

C
  QCalendarPermission
  QCameraPermission
  QCanDbcFileParser
  QCanFrameProcessor
  QCanMessageDescription
  QCanSignalDescription
  QCanUniqueIdDescription
  QContactsPermission

G
  QGrpcCallCredentials
  QGrpcCallReply
  QGrpcChannel
  QGrpcChannelCredentials
  QGrpcCredentials
  QGrpcHttp2Channel
  QGrpcInsecureCallCredentials
  QGrpcInsecureChannelCredentials
  QGrpcOperation
  QGrpcSslCredentials
  QGrpcStatus
  QGrpcStream
  QGrpcUserPasswordCredentials

H
  QHttp1Configuration

L
  QLatin1StringMatcher
  QLocationPermission

M
  MultiplexValueRange (QCanSignalDescription)
  QMicrophonePermission

P
  ParseResult (QDomDocument)
  ParseResult (QCanFrameProcessor)
  QPermission
  QProtobufMessage
  QProtobufMessageDeleter
  QProtobufSerializer

Q
  QQuickAttachedPropertyPropagator

S
  QScreenCapture

U
  QUtiMimeConverter

W
  QWaylandApplication (QNativeInterface)

### New Member Functions

Class QAbstractOAuth2:

void | setSslConfiguration(const QSslConfiguration &configuration)
QSslConfiguration | sslConfiguration() const
void | sslConfigurationChanged(const QSslConfiguration &configuration)

Class QAccessibleInterface:

QAccessibleSelectionInterface * | selectionInterface()

Class QAnyStringView:

void | chop(qsizetype n)
QAnyStringView | chopped(qsizetype n) const
QAnyStringView | first(qsizetype n) const
QAnyStringView | last(qsizetype n) const
QAnyStringView | sliced(qsizetype pos) const
QAnyStringView | sliced(qsizetype pos, qsizetype n) const
void | truncate(qsizetype n)

Class QBasicTimer:

void | start(std::chrono::milliseconds duration, QObject *object)
void | start(std::chrono::milliseconds duration, Qt::TimerType timerType, QObject *obj)

Class QByteArray:

QByteArray::iterator | erase(QByteArray::const_iterator it)
QByteArray | fromEcmaUint8Array(emscripten::val uint8array)
QByteArray & | removeAt(qsizetype pos)
QByteArray & | removeFirst()
QByteArray & | removeLast()
emscripten::val | toEcmaUint8Array()

Class QCoreApplication:

Qt::PermissionStatus | checkPermission(const QPermission &permission)
void | requestPermission(const QPermission &permission, const QObject *context, Functor functor)

Class QCryptographicHash:

QCryptographicHash::Algorithm | algorithm() const
QCryptographicHash & | operator=(QCryptographicHash &&other)
bool | supportsAlgorithm(QCryptographicHash::Algorithm method)
void | swap(QCryptographicHash &other)

Class QDate:

QDateTime | endOfDay() const
QDateTime | startOfDay() const

Class QDateTime:

QDateTime | currentDateTime(const QTimeZone &zone)
QDateTime | fromMSecsSinceEpoch(qint64 msecs)
QDateTime | fromSecsSinceEpoch(qint64 secs)
QTimeZone | timeRepresentation() const

Class QDebug:

QDebug & | operator<<(const std::basic_string<Char, Args...> &s)
QDebug & | operator<<(std::basic_string_view<Char, Args...> s)

Class QDomDocument:

QDomDocument::ParseResult | setContent(const QByteArray &data, QDomDocument::ParseOptions options)
QDomDocument::ParseResult | setContent(QAnyStringView data, QDomDocument::ParseOptions options)
QDomDocument::ParseResult | setContent(QIODevice *device, QDomDocument::ParseOptions options)
QDomDocument::ParseResult | setContent(QXmlStreamReader *reader, QDomDocument::ParseOptions options)

Class QGlyphRun:

void | setSourceString(const QString &sourceString)
void | setStringIndexes(const QList<qsizetype> &stringIndexes)
QString | sourceString() const
QList<qsizetype> | stringIndexes() const

Class QGuiApplication:

void | setBadgeNumber(qint64 number)

Class QHttp1Configuration:

bool | operator!=(const QHttp1Configuration &lhs, const QHttp1Configuration &rhs)
bool | operator==(const QHttp1Configuration &lhs, const QHttp1Configuration &rhs)
size_t | qHash(const QHttp1Configuration &key, size_t seed)

Class QHttpServerRequest:

QHostAddress | localAddress() const
quint16 | localPort() const
quint16 | remotePort() const

Class QHttpServerResponder:

void | sendResponse(const QHttpServerResponse &response)

Class QLatin1StringView:

int | compare(QUtf8StringView str, Qt::CaseSensitivity cs) const

Class QLibraryInfo:

bool | isSharedBuild()

Class QLowEnergyController:

void | readRssi()
void | rssiRead(qint16 rssi)

Class QMessageLogger:

void | fatal(const QLoggingCategory &cat, const char *msg, ...) const
void | fatal(QMessageLogger::CategoryFunction catFunc, const char *msg, ...) const
QDebug | fatal() const
QDebug | fatal(const QLoggingCategory &cat) const
QDebug | fatal(QMessageLogger::CategoryFunction catFunc) const

Class QMetaMethod:

bool | invoke(QObject *obj, Qt::ConnectionType type, QMetaMethodReturnArgument ret, Args &&... arguments) const
bool | invoke(QObject *obj, Qt::ConnectionType type, Args &&... arguments) const
bool | invoke(QObject *obj, QMetaMethodReturnArgument ret, Args &&... arguments) const
bool | invoke(QObject *obj, Args &&... arguments) const
bool | invokeOnGadget(void *gadget, QMetaMethodReturnArgument ret, Args &&... arguments) const
bool | invokeOnGadget(void *gadget, Args &&... arguments) const

Class QMetaObject:

bool | invokeMethod(QObject *obj, const char *member, Qt::ConnectionType type, QMetaMethodReturnArgument r, Args &&... args)
bool | invokeMethod(QObject *obj, const char *member, Qt::ConnectionType type, Args &&... args)
bool | invokeMethod(QObject *obj, const char *member, QMetaMethodReturnArgument r, Args &&... args)
bool | invokeMethod(QObject *obj, const char *member, Args &&... args)
QObject * | newInstance(Args &&... arguments) const

Class QMetaType:

bool | isCopyConstructible() const
bool | isDefaultConstructible() const
bool | isDestructible() const
bool | isMoveConstructible() const
QDebug | operator<<(QDebug d, QMetaType m)
int | qRegisterMetaType(QMetaType meta)
void | registerType() const

Class QEGLContext:

virtual void | invalidateContext() = 0

Class QNetworkRequest:

QHttp1Configuration | http1Configuration() const
void | setHttp1Configuration(const QHttp1Configuration &configuration)

Class QOpenGLBuffer:

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

Class QOpenGLWidget:

QOpenGLWidget::TargetBuffer | currentTargetBuffer() const
GLuint | defaultFramebufferObject(QOpenGLWidget::TargetBuffer targetBuffer) const
QImage | grabFramebuffer(QOpenGLWidget::TargetBuffer targetBuffer)
void | makeCurrent(QOpenGLWidget::TargetBuffer targetBuffer)

Class QQmlApplicationEngine:

void | loadFromModule(QAnyStringView uri, QAnyStringView typeName)

Class QQmlComponent:

bool | isBound() const
void | loadFromModule(QAnyStringView uri, QAnyStringView typeName, QQmlComponent::CompilationMode mode)

Class QQmlEngine:

void | offlineStoragePathChanged()
T | singletonInstance(QAnyStringView uri, QAnyStringView typeName)

Class QQuickGraphicsConfiguration:

bool | isAutomaticPipelineCacheEnabled() const
void | setAutomaticPipelineCache(bool enable)
void | setDebugLayer(bool enable)
void | setDebugMarkers(bool enable)
void | setPipelineCacheLoadFile(const QString &filename)
void | setPipelineCacheSaveFile(const QString &filename)
void | setPreferSoftwareDevice(bool enable)

Class QRectF:

QRectF | fromDOMRect(emscripten::val domRect)
emscripten::val | toDOMRect() const

Class QRegularExpression:

QRegularExpressionMatchIterator | globalMatchView(QStringView subjectView, qsizetype offset, QRegularExpression::MatchType matchType, QRegularExpression::MatchOptions matchOptions) const
QRegularExpressionMatch | matchView(QStringView subjectView, qsizetype offset, QRegularExpression::MatchType matchType, QRegularExpression::MatchOptions matchOptions) const

Class QSGRenderNode:

const QMatrix4x4 * | projectionMatrix() const

Class QString:

QString & | append(QUtf8StringView str)
QString::iterator | erase(QString::const_iterator it)
QString & | insert(qsizetype position, QUtf8StringView str)
QString & | operator+=(QUtf8StringView str)
QString & | prepend(QUtf8StringView str)
QString & | removeAt(qsizetype pos)
QString & | removeFirst()
QString & | removeLast()

Class QStringView:

int | compare(QUtf8StringView str, Qt::CaseSensitivity cs) const

Class QSvgGenerator:

QSvgGenerator::SvgVersion | svgVersion() const

Class QTextLayout:

QList<QGlyphRun> | glyphRuns(int from, int length, QTextLayout::GlyphRunRetrievalFlags retrievalFlags) const

Class QTextLine:

QList<QGlyphRun> | glyphRuns(int from, int length, QTextLayout::GlyphRunRetrievalFlags retrievalFlags) const

Class QTimeZone:

QTimeZone | asBackendZone() const
int | fixedSecondsAheadOfUtc() const
QTimeZone | fromDurationAheadOfUtc(std::chrono::seconds offset)
QTimeZone | fromSecondsAheadOfUtc(int offset)
bool | isUtcOrFixedOffset(Qt::TimeSpec spec)
bool | isUtcOrFixedOffset() const
Qt::TimeSpec | timeSpec() const

Class QTransform:

QTransform & | rotate(qreal a, Qt::Axis axis, qreal distanceToPlane)
QTransform & | rotateRadians(qreal a, Qt::Axis axis, qreal distanceToPlane)

Class QUtf8StringView:

int | compare(QUtf8StringView str, Qt::CaseSensitivity cs) const
int | compare(QStringView str, Qt::CaseSensitivity cs) const
int | compare(QLatin1StringView str, Qt::CaseSensitivity cs) const

Class QVulkanInstance:

void | clearDebugOutputFilters()
void | installDebugOutputFilter(QVulkanInstance::DebugUtilsFilter filter)

Class QWebEngineProfile:

bool | isPushServiceEnabled() const
void | setPushServiceEnabled(bool enable)

Class QWebEngineUrlRequestInfo:

QHash<QByteArray, QByteArray> | httpHeaders() const

Class QWebSocket:

void | errorOccurred(QAbstractSocket::SocketError error)

### New Functions in Namespaces

bool | currentTestResolved()
void | qRegisterTestCase(const QString &name, QTest::TestEntryFunction entryFunction)
char * | toString(const QKeySequence &ks)

### New Macros

| Q_DECLARE_EXPORTED_LOGGING_CATEGORY(name, EXPORT_MACRO)
| Q_PROCESSOR_LOONGARCH
| Q_PROCESSOR_LOONGARCH_32
| Q_PROCESSOR_LOONGARCH_64
void | Q_UNREACHABLE_RETURN(...)
| qCFatal(category, const char *message, ...)
| qCFatal(category)

### New Enum Types

enum class | ParseOption { Default, UseNamespaceProcessing, PreserveSpacingOnlyNodes }
enum | TargetBuffer { LeftBuffer, RightBuffer }
enum class | SvgVersion { SvgTiny12, Svg11 }
enum | GlyphRunRetrievalFlag { RetrieveGlyphIndexes, RetrieveGlyphPositions, RetrieveStringIndexes, RetrieveString, DefaultRetrievalFlags, RetrieveAll }
enum | Initialization { LocalTime, UTC }
enum | DebugMessageSeverityFlag { VerboseSeverity, InfoSeverity, WarningSeverity, ErrorSeverity }
enum | DebugMessageTypeFlag { GeneralMessage, ValidationMessage, PerformanceMessage }
enum class | PermissionStatus { Undetermined, Granted, Denied }

### New Type Aliases

| DebugUtilsFilter

### New Properties

finishingKeyCombinations : const maximumSequenceLength : const screenCapture : const | playing : const colorScheme : const

### New Variables

| dstAlpha
| separateBlendFactors
| srcAlpha
| Android12
| Android12L
| Android13
| MacOSSonoma
| Windows10_22H2

### New QML Types

E
  ExtendedSceneEnvironment

F
  Fog

G
  geoSatelliteInfo

I
  InfiniteGrid

S
  SatelliteSource
  ScreenCapture
  Settings

### New QML Properties

QML Type Camera:

| levelOfDetailBias : float

QML Type CaptureSession:

| screenCapture : ScreenCapture

QML Type DebugSettings:

| materialOverride : enumeration
| wireframeEnabled : bool

QML Type DynamicRigidBody:

| kinematicEulerRotation : vector4d
| kinematicPivot : vector3d
| kinematicPosition : vector3d
| kinematicRotation : vector3d

QML Type Item:

| layer.live : bool

QML Type MediaPlayer:

| playing : bool

QML Type Model:

| levelOfDetailBias : real

QML Type PickResult:

| instanceIndex : int

QML Type PrincipledMaterial:

| vertexColorsEnabled : bool

QML Type ReflectionProbe:

| texture : CubeMapTexture

QML Type RenderStats:

| drawCallCount : quint64
| drawVertexCount : quint64
| effectGenerationTime : qint64
| extendedDataCollectionEnabled : bool
| graphicsAPIName : string
| imageDataSize : quint64
| materialGenerationTime : qint64
| meshDataSize : quint64
| pipelineCount : int
| pipelineCreationTime : qint64
| renderPassCount : int
| vmemAllocCount : quint32
| vmemUsedBytes : quint64

QML Type SceneEnvironment:

| aoEnabled : bool
| debugSettings : QtQuick3D::DebugSettings
| fog : QtQuick3D::Fog
| scissorRect : rect

QML Type SpecularGlossyMaterial:

| vertexColorsEnabled : bool

QML Type TableView:

| editTriggers : enumeration
| resizableColumns : bool
| resizableRows : bool

QML Type TapHandler:

| exclusiveSignals : enumeration

QML Type TreeViewDelegate:

| editing : bool

### New QML Signals

| frameDone(float timestep)
| layoutChanged()

### New QML Methods

QML Type Locale:

string | toString(int i)
string | toString(double f, char format, int precision)
string | toString(Date date, string format)
string | toString(Date date, FormatType format)

QML Type TableView:

| closeEditor()
| edit(QModelIndex modelIndex)
Item | itemAtIndex(QModelIndex index)
| positionViewAtIndex(QModelIndex index, PositionMode mode, point offset, rect subRect)

QML Type TestCase:

bool | waitForPolish(object windowOrItem, int timeout)