New Classes and Functions in Qt 6.6

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

New Namespaces

New Classes

A
Any (QtProtobuf)
B
BlockVariable (QShaderDescription)
BuiltinVariable (QShaderDescription)
C
QCapturableWindow
D
DnsMode (QWebEngineGlobalSettings)
G
QGrpcCallOptions
QGrpcChannelOptions
I
Id128Bytes (QUuid)
InOutVariable (QShaderDescription)
N
QNativeIpcKey
QNtfsPermissionCheckGuard
O
QOpcUaConnectionSettings
P
PushConstantBlock (QShaderDescription)
QPdfLinkModel
QPdfPageSelector
Q
QQuick3DExtensionHelpers
QQuick3DRenderExtension
R
QRhi
QRhiBuffer
QRhiColorAttachment
QRhiCommandBuffer
QRhiComputePipeline
QRhiD3D11InitParams
QRhiD3D11NativeHandles
QRhiDepthStencilClearValue
QRhiDriverInfo
QRhiGles2InitParams
QRhiGles2NativeHandles
QRhiGraphicsPipeline
QRhiInitParams
QRhiMetalCommandBufferNativeHandles
QRhiMetalInitParams
QRhiMetalNativeHandles
QRhiNativeHandles
QRhiNullInitParams
QRhiNullNativeHandles
QRhiReadbackDescription
QRhiReadbackResult
QRhiRenderBuffer
QRhiRenderPassDescriptor
QRhiRenderTarget
QRhiResource
QRhiResourceUpdateBatch
QRhiSampler
QRhiScissor
QRhiShaderResourceBinding
QRhiShaderResourceBindings
QRhiShaderStage
QRhiStats
QRhiSwapChain
QRhiSwapChainHdrInfo
QRhiSwapChainProxyData
QRhiSwapChainRenderTarget
QRhiTexture
QRhiTextureCopyDescription
QRhiTextureRenderTarget
QRhiTextureRenderTargetDescription
QRhiTextureSubresourceUploadDescription
QRhiTextureUploadDescription
QRhiTextureUploadEntry
QRhiVertexInputAttribute
QRhiVertexInputBinding
QRhiVertexInputLayout
QRhiViewport
QRhiVulkanCommandBufferNativeHandles
QRhiVulkanInitParams
QRhiVulkanNativeHandles
QRhiVulkanRenderPassNativeHandles
S
QScopedPropertyUpdateGroup
QSGD3D12Texture (QNativeInterface)
QShader
QShaderBaker
QShaderCode
QShaderDescription
QShaderKey
QShaderVersion
StencilOpState (QRhiGraphicsPipeline)
StorageBlock (QShaderDescription)
T
TargetBlend (QRhiGraphicsPipeline)
U
UniformBlock (QShaderDescription)
UnixProcessParameters (QProcess)
W
QWindowCapture

New Member Functions

Class QAbstractOAuthReplyHandler:

void tokenRequestErrorOccurred(QAbstractOAuth::Error error, const QString &errorString)

Class QBluetoothPermission:

QBluetoothPermission::CommunicationModes communicationModes() const
void setCommunicationModes(QBluetoothPermission::CommunicationModes modes)

Class QBluetoothUuid:

QBluetoothUuid fromCBUUID(CBUUID *cbUuid)
CBUUID *toCBUUID() const

Class QByteArray:

QByteArray &assign(QByteArrayView v)
QByteArray &assign(qsizetype n, char c)
QByteArray &assign(InputIterator first, InputIterator last)

Class QDebug:

QDebug &operator<<(std::chrono::duration<Rep, Period> duration)

Class QDnsLookup:

void setNameserver(const QHostAddress &nameserver, quint16 port)

Class QElapsedTimer:

QElapsedTimer::Duration durationElapsed() const
QElapsedTimer::Duration durationTo(const QElapsedTimer &other) const

Class QFileInfo:

QDateTime birthTime(const QTimeZone &tz) const
QDateTime fileTime(QFile::FileTime time, const QTimeZone &tz) const
std::filesystem::path filesystemReadSymLink() const
QDateTime lastModified(const QTimeZone &tz) const
QDateTime lastRead(const QTimeZone &tz) const
QDateTime metadataChangeTime(const QTimeZone &tz) const
QString readSymLink() const

Class QFileSystemModel:

QDateTime lastModified(const QModelIndex &index, const QTimeZone &tz) const

Class QFont:

(preliminary) void clearFeatures()
(preliminary) QList<quint32> featureTags() const
(preliminary) quint32 featureValue(quint32 tag) const
(preliminary) bool isFeatureSet(quint32 tag) const
(preliminary) void setFeature(const char *feature, quint32 value)
(preliminary) void setFeature(quint32 tag, quint32 value)
(preliminary) quint32 stringToTag(const char *name)
(preliminary) QByteArray tagToString(quint32 tag)
(preliminary) void unsetFeature(quint32 tag)
(preliminary) void unsetFeature(const char *feature)

Class QHostAddress:

bool isPrivateUse() const

Class QJSPrimitiveValue:

void *data()
QMetaType metaType() const
QJSPrimitiveValue to() const

Class QList:

QList<T> &assign(qsizetype n, QList::parameter_type t)
QList<T> &assign(InputIterator first, InputIterator last)
QList<T> &assign(std::initializer_list<T> l)

Class QMessageAuthenticationCode:

QMessageAuthenticationCode &operator=(QMessageAuthenticationCode &&other)
QByteArrayView resultView() const
void swap(QMessageAuthenticationCode &other)

Class QMessageBox:

void setOption(QMessageBox::Option option, bool on)
bool testOption(QMessageBox::Option option) const

Class QMetaEnum:

QMetaType metaType() const

Class QMetaProperty:

bool write(QObject *object, QVariant &&v) const
bool writeOnGadget(void *gadget, QVariant &&value) const

Class QMetaType:

QMetaType underlyingType() const

Class QMutex:

bool tryLock(QDeadlineTimer timer)

Class QSGD3D12Texture:

QSGTexture *fromNative(void *texture, int resourceState, QQuickWindow *window, const QSize &size, QQuickWindow::CreateTextureOptions options)

Class QNtfsPermissionCheckGuard:


Class QObject:

bool setProperty(const char *name, QVariant &&value)

Class QOpcUaClient:

QOpcUaConnectionSettings connectionSettings() const
void setConnectionSettings(const QOpcUaConnectionSettings &connectionSettings)

Class QPalette:

const QBrush &accent() const
bool operator==(const QPalette &p) const

Class QPdfDocument:

int pageIndexForLabel(const QString &label)

Class QPointer:

QPointer<T> &operator=(const QPointer<X> &other)

Class QProcess:

void setUnixProcessParameters(const QProcess::UnixProcessParameters &params)
void setUnixProcessParameters(QProcess::UnixProcessFlags flagsOnly)
QProcess::UnixProcessParameters unixProcessParameters() const

Class QPromise:

bool addResults(const QList<T> &results)

Class QProtobufMessage:

bool setProperty(QAnyStringView propertyName, QVariant &&value)

Class QQmlEngine:


Class QQuick3DGeometry:

void addTargetAttribute(quint32 targetId, Attribute::Semantic semantic, int offset, int stride)
void addTargetAttribute(const QQuick3DGeometry::TargetAttribute &attribute)
void setTargetData(const QByteArray &data)
void setTargetData(int offset, const QByteArray &data)
QQuick3DGeometry::TargetAttribute targetAttribute(int index) const
int targetAttributeCount() const
QByteArray targetData() const

Class QQuickGraphicsConfiguration:

void setTimestamps(bool enable)
bool timestampsEnabled() const

Class QQuickGraphicsDevice:

QQuickGraphicsDevice fromRhi(QRhi *rhi)

Class QQuickRenderControl:

QRhiCommandBuffer *commandBuffer() const
QRhi *rhi() const

Class QQuickRenderTarget:

QQuickRenderTarget fromD3D12Texture(void *texture, int resourceState, uint format, const QSize &pixelSize, int sampleCount)
QQuickRenderTarget fromRhiRenderTarget(QRhiRenderTarget *renderTarget)

Class QQuickWindow:

QSGTexture *createTextureFromRhiTexture(QRhiTexture *texture, QQuickWindow::CreateTextureOptions options) const
QRhi *rhi() const
QRhiSwapChain *swapChain() const

Class QReadWriteLock:

bool tryLockForRead(QDeadlineTimer timeout)
bool tryLockForWrite(QDeadlineTimer timeout)

Class QRecursiveMutex:

bool tryLock(QDeadlineTimer timeout)

Class QSGRenderNode:

QRhiCommandBuffer *commandBuffer() const
QRhiRenderTarget *renderTarget() const

Class QSemaphore:

bool tryAcquire(int n, QDeadlineTimer timer)

Class QSharedMemory:

QNativeIpcKey nativeIpcKey() const
void setNativeKey(const QNativeIpcKey &key)

Class QSignalSpy:

bool wait(std::chrono::milliseconds timeout)

Class QSqlField:

void swap(QSqlField &other)

Class QSqlIndex:

QSqlIndex &operator=(QSqlIndex &&other)

Class QSqlQuery:

QString boundValueName(int pos) const
QStringList boundValueNames() const

Class QSqlRecord:

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

Class QString:

QString &assign(QAnyStringView v)
QString &assign(qsizetype n, QChar c)
QString &assign(InputIterator first, InputIterator last)
QString fromEcmaString(emscripten::val jsString)
emscripten::val toEcmaString() const

Class QStringDecoder:

char16_t *appendToBuffer(char16_t *out, QByteArrayView in)

Class QTextListFormat:

void setStart(int start)
int start() const

Class QTextToSpeech:

void aboutToSynthesize(qsizetype id)
qsizetype enqueue(const QString &utterance)
QList<QVoice> findVoices(Args &&... args) const
void sayingWord(const QString &word, qsizetype id, qsizetype start, qsizetype length)

Class QThread:

void sleep(std::chrono::nanoseconds nsecs)

Class QUuid:

QUuid fromBytes(const void *bytes, QSysInfo::Endian order)
QUuid fromUInt128(quint128 uuid, QSysInfo::Endian order)
QUuid::Id128Bytes toBytes(QSysInfo::Endian order) const
quint128 toUInt128(QSysInfo::Endian order) const

Class Id128Bytes:

QUuid::Id128Bytes qFromBigEndian(QUuid::Id128Bytes src)
QUuid::Id128Bytes qFromLittleEndian(QUuid::Id128Bytes src)
QUuid::Id128Bytes qToBigEndian(QUuid::Id128Bytes src)
QUuid::Id128Bytes qToLittleEndian(QUuid::Id128Bytes src)

Class QVarLengthArray:

QVarLengthArray<T, Prealloc> &assign(qsizetype n, const T &t)
QVarLengthArray<T, Prealloc> &assign(InputIterator first, InputIterator last)
QVarLengthArray<T, Prealloc> &assign(std::initializer_list<T> list)

Class QVariant:

T &emplace(Args &&... args)
T &emplace(std::initializer_list<U> list, Args &&... args)
QVariant fromStdVariant(std::variant<Types...> &&value)
QVariant fromValue(T &&value)

Class QWebEnginePage:

QString devToolsId() const

Class QWebEngineUrlRequestJob:

void setAdditionalResponseHeaders(const QMultiMap<QByteArray, QByteArray> &additionalResponseHeaders) const

Class QWebSocket:

void authenticationRequired(QAuthenticator *authenticator)

Class QWidget:

void setTabOrder(std::initializer_list<QWidget *> widgets)

Class QXmlStreamReader:


New Functions in Namespaces

QFuture<ValueType> makeReadyRangeFuture(std::initializer_list<ValueType> values)
QFuture<ContainedType<Container>> makeReadyRangeFuture(Container &&container)
QFuture<std::decay_t<T>> makeReadyValueFuture(T &&value)
QFuture<void> makeReadyVoidFuture()

New Global Functions

QString qWebEngineGetDomainAndRegistry(const QUrl &url)

New Macros

New Enum Types

enum CommunicationMode { Access, Advertise, Default }
enum class ReferenceSurface { Map, Globe }
enum class Option { DontUseNativeDialog }
enum class UnixProcessFlag { ResetSignalHandlers, IgnoreSigPipe, CloseFileDescriptors, UseVFork }
enum class Capability { None, Speak, PauseResume, WordByWordProgress, Synthesize }

New Enum Values

New Type Aliases

New Properties

New QML Types

New QML Properties

QML Type CaptureSession:

windowCapture : WindowCapture

QML Type CharacterController:


QML Type ColorGroup:

accent : color

QML Type Dial:

endAngle : real
startAngle : real

QML Type MediaRecorder:


QML Type Path:

simplify : bool

QML Type PathText:

font.features : object

QML Type RenderStats:


QML Type ScrollView:


QML Type Shape:

boundingRect : rect
preferredRendererType : enumeration

QML Type SpinBox:

live : bool

QML Type TableView:

selectionMode : enumeration

QML Type Text:

font.features : object

QML Type TextEdit:

font.features : object

QML Type TextInput:

font.features : object

QML Type TextToSpeech:

engineCapabilities : enumeration

QML Type TreeView:

rootIndex : QModelIndex

QML Type XMLHttpRequest:

responseURL : string

QML Type voice:

language : enumerator

New QML Signals

aboutToSynthesize(number id)
sayingWord(string word, int id, int start, int length)
shapeHit(PhysicsNode *body, vector3D position, vector3D impulse, vector3D normal)
wrapped(Dial.WrapDirection direction)

New QML Methods

QML Type TextToSpeech:

enqueue(string utterance)
list<voice> findVoices(map criteria)

QML Type XMLHttpRequest:

void overrideMimeType(mime)

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