New Classes and Functions in Qt 6.8 (original) (raw)

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

New Namespaces

New Classes

New Member Functions

Class QAbstractEventDispatcher:

(since 6.8) void registerTimer(Qt::TimerId timerId, QAbstractEventDispatcher::Duration interval, Qt::TimerType timerType, QObject *object)
(since 6.8) Qt::TimerId registerTimer(QAbstractEventDispatcher::Duration interval, Qt::TimerType timerType, QObject *object)
(since 6.8) QListQAbstractEventDispatcher::TimerInfoV2 timersForObject(QObject *object) const
(since 6.8) bool unregisterTimer(Qt::TimerId timerId)

Class QAbstractGrpcChannel:

Class QAbstractHttpServer:

Class QAbstractProtobufSerializer:

(since 6.8) virtual QAbstractProtobufSerializer::Error lastError() const = 0
(since 6.8) virtual QString lastErrorString() const = 0

Class QAnyStringView:

(since 6.8) qsizetype max_size() const
(since 6.8) QAnyStringView & slice(qsizetype pos, qsizetype n)
(since 6.8) QAnyStringView & slice(qsizetype pos)

Class QBasicTimer:

(since 6.8) Qt::TimerId id() const

Class QByteArray:

(since 6.8) qsizetype maxSize()
(since 6.8) qsizetype max_size() const
(since 6.8) void resizeForOverwrite(qsizetype size)
(since 6.8) QByteArray & slice(qsizetype pos, qsizetype n)
(since 6.8) QByteArray & slice(qsizetype pos)

Class QByteArrayView:

(since 6.8) qsizetype maxSize()
(since 6.8) qsizetype max_size() const
(since 6.8) QByteArrayView & slice(qsizetype pos, qsizetype n)
(since 6.8) QByteArrayView & slice(qsizetype pos)

Class QCanBus:

(since 6.8) QList availableDevices(QString *errorMessage) const

Class QColorSpace:

Class QCryptographicHash:

(since 6.8) QByteArrayView hashInto(QSpan buffer, QByteArrayView data, QCryptographicHash::Algorithm method)
(since 6.8) QByteArrayView hashInto(QSpan buffer, QSpan data, QCryptographicHash::Algorithm method)
(since 6.8) QByteArrayView hashInto(QSpanstd::byte buffer, QByteArrayView data, QCryptographicHash::Algorithm method)
(since 6.8) QByteArrayView hashInto(QSpanstd::byte buffer, QSpan data, QCryptographicHash::Algorithm method)
(since 6.8) QByteArrayView hashInto(QSpan buffer, QByteArrayView data, QCryptographicHash::Algorithm method)
(since 6.8) QByteArrayView hashInto(QSpan buffer, QSpan data, QCryptographicHash::Algorithm method)

Class QDBusObjectPath:

(since 6.8) QDebug operator<<(QDebug dbg, const QDBusObjectPath &path)

Class QDnsLookup:

Class QFontDatabase:

Class QGrpcBidiStream:

Class QGrpcCallOptions:

(since 6.8) QVariant operator QVariant() const
(since 6.8) QDebug operator<<(QDebug debug, const QGrpcCallOptions &callOpts)
(since 6.8) void swap(QGrpcCallOptions &other)

Class QGrpcChannelOptions:

Class QGrpcClientStream:

Class QGrpcOperation:

(since 6.8) bool read(QProtobufMessage *message) const

Class QGrpcSerializationFormat:

(since 6.8) QVariant operator QVariant() const
(since 6.8) QDebug operator<<(QDebug debug, const QGrpcSerializationFormat &sfmt)
(since 6.8) void swap(QGrpcSerializationFormat &other)

Class QGrpcStatus:

(since 6.8) bool isOk() const
(since 6.8) QVariant operator QVariant() const
(since 6.8) QDataStream & operator<<(QDataStream &out, const QGrpcStatus &status)
(since 6.8) QDebug operator<<(QDebug debug, const QGrpcStatus &status)
(since 6.8) QDataStream & operator>>(QDataStream &in, QGrpcStatus &status)
(since 6.8) size_t qHash(const QGrpcStatus &key, size_t seed)
(since 6.8) void swap(QGrpcStatus &other)

Class QHash:

(since 6.8) size_t qHash(qint128 key, size_t seed)
(since 6.8) size_t qHash(quint128 key, size_t seed)

Class QHelpContentModel:

Class QHelpIndexModel:

Class QHttpHeaders:

(since 6.8) bool replaceOrAppend(QHttpHeaders::WellKnownHeader name, QAnyStringView newValue)

Class QHttpPart:

(since 6.8) QDebug operator<<(QDebug debug, const QHttpPart &part)

Class QHttpServerResponder:

(since 6.8) void swap(QHttpServerResponder &other)
(since 6.8) void writeBeginChunked(const QByteArray &mimeType, QHttpServerResponder::StatusCode status)
(since 6.8) void writeBeginChunked(const QHttpHeaders &headers, QHttpServerResponder::StatusCode status)
(since 6.8) void writeBeginChunked(const QHttpHeaders &headers, QListQHttpHeaders::WellKnownHeader trailers, QHttpServerResponder::StatusCode status)
(since 6.8) void writeChunk(const QByteArray &data)
(since 6.8) void writeEndChunked(const QByteArray &data)
(since 6.8) void writeEndChunked(const QByteArray &data, const QHttpHeaders &trailers)

Class QHttpServerResponse:

(since 6.8) QHttpHeaders headers() const
(since 6.8) void setHeaders(QHttpHeaders &&newHeaders)
(since 6.8) void setHeaders(const QHttpHeaders &newHeaders)

Class QIdentityProxyModel:

Class QImage:

(since 6.8) void applyColorTransform(const QColorTransform &transform, QImage::Format toFormat, Qt::ImageConversionFlags flags)
(since 6.8) QImage colorTransformed(const QColorTransform &transform, QImage::Format toFormat, Qt::ImageConversionFlags flags) const &
(since 6.8) QImage colorTransformed(const QColorTransform &transform, QImage::Format format, Qt::ImageConversionFlags flags) &&
(since 6.8) void convertToColorSpace(const QColorSpace &colorSpace, QImage::Format format, Qt::ImageConversionFlags flags)
(since 6.8) QImage convertedToColorSpace(const QColorSpace &colorSpace, QImage::Format format, Qt::ImageConversionFlags flags) &&
(since 6.8) QImage convertedToColorSpace(const QColorSpace &colorSpace, QImage::Format format, Qt::ImageConversionFlags flags) const &

Class QJniObject:

(since 6.8) void swap(QJniObject &other)

Class QLatin1StringMatcher:

(since 6.8) qsizetype indexIn(QStringView haystack, qsizetype from) const

Class QLatin1StringView:

(since 6.8) qsizetype maxSize()
(since 6.8) qsizetype max_size() const
(since 6.8) QLatin1StringView & slice(qsizetype pos)
(since 6.8) QLatin1StringView & slice(qsizetype pos, qsizetype n)

Class QLibraryInfo:

(since 6.8) QStringList paths(QLibraryInfo::LibraryPath p)

Class QLineF:

Class QList:

Class QLocalServer:

Class QMap:

(since 6.8) size_t qHash(const QMap<Key, T> &key, size_t seed)

Class QMarginsF:

(since 6.8) bool qFuzzyCompare(const QMarginsF &lhs, const QMarginsF &rhs)
(since 6.8) bool qFuzzyIsNull(const QMarginsF &margins)

Class QMessageAuthenticationCode:

(since 6.8) QByteArrayView hashInto(QSpan buffer, QByteArrayView message, QByteArrayView key, QCryptographicHash::Algorithm method)
(since 6.8) QByteArrayView hashInto(QSpan buffer, QSpan messageParts, QByteArrayView key, QCryptographicHash::Algorithm method)
(since 6.8) QByteArrayView hashInto(QSpanstd::byte buffer, QByteArrayView message, QByteArrayView key, QCryptographicHash::Algorithm method)
(since 6.8) QByteArrayView hashInto(QSpanstd::byte buffer, QSpan messageParts, QByteArrayView key, QCryptographicHash::Algorithm method)
(since 6.8) QByteArrayView hashInto(QSpan buffer, QByteArrayView message, QByteArrayView key, QCryptographicHash::Algorithm method)
(since 6.8) QByteArrayView hashInto(QSpan buffer, QSpan messageParts, QByteArrayView key, QCryptographicHash::Algorithm method)

Class QNetworkAccessManager:

(since 6.8) QNetworkReply * post(const QNetworkRequest &request, std::nullptr_t nptr)
(since 6.8) QNetworkReply * put(const QNetworkRequest &request, std::nullptr_t nptr)

Class QNetworkCacheMetaData:

(since 6.8) QHttpHeaders headers() const
(since 6.8) void setHeaders(const QHttpHeaders &headers)

Class QNetworkProxy:

(since 6.8) QHttpHeaders headers() const
(since 6.8) void setHeaders(QHttpHeaders &&newHeaders)
(since 6.8) void setHeaders(const QHttpHeaders &newHeaders)

Class QNetworkReply:

(since 6.8) QHttpHeaders headers() const
(since 6.8) void setHeaders(const QHttpHeaders &newHeaders)
(since 6.8) void setHeaders(QHttpHeaders &&newHeaders)
(since 6.8) void setWellKnownHeader(QHttpHeaders::WellKnownHeader name, QByteArrayView value)

Class QNetworkRequest:

(since 6.8) QHttpHeaders headers() const
(since 6.8) void setHeaders(QHttpHeaders &&newHeaders)
(since 6.8) void setHeaders(const QHttpHeaders &newHeaders)

Class QNetworkRequestFactory:

(since 6.8) QVariant attribute(QNetworkRequest::Attribute attribute) const
(since 6.8) QVariant attribute(QNetworkRequest::Attribute attribute, const QVariant &defaultValue) const
(since 6.8) void clearAttribute(QNetworkRequest::Attribute attribute)
(since 6.8) void clearAttributes()
(since 6.8) QNetworkRequest::Priority priority() const
(since 6.8) void setAttribute(QNetworkRequest::Attribute attribute, const QVariant &value)
(since 6.8) void setPriority(QNetworkRequest::Priority priority)

Class QOAuth2AuthorizationCodeFlow:

(since 6.8) QOAuth2AuthorizationCodeFlow::PkceMethod pkceMethod() const
(since 6.8) void setPkceMethod(QOAuth2AuthorizationCodeFlow::PkceMethod method, qsizetype length)

Class QObject:

Class QPaintDevice:

(since 6.8) int encodeMetricF(QPaintDevice::PaintDeviceMetric metric, double value)

Class QPdfWriter:

Class QPointF:

Class QProtobufMessage:

(since 6.8) bool deserialize(QAbstractProtobufSerializer *serializer, QByteArrayView data)
(since 6.8) const QtProtobufPrivate::QProtobufPropertyOrdering * propertyOrdering() const
(since 6.8) QByteArray serialize(QAbstractProtobufSerializer *serializer) const

Class QQuickRenderTarget:

(since 6.8) QRhiTexture * depthTexture() const
(since 6.8) QQuickRenderTarget fromD3D11Texture(void *texture, uint format, QSize pixelSize, int sampleCount, QQuickRenderTarget::Flags flags)
(since 6.8) QQuickRenderTarget fromD3D12Texture(void *texture, int resourceState, uint format, uint viewFormat, QSize pixelSize, int sampleCount, int arraySize, QQuickRenderTarget::Flags flags)
(since 6.8) QQuickRenderTarget fromMetalTexture(MTLTexture *texture, uint format, uint viewFormat, QSize pixelSize, int sampleCount, int arraySize, QQuickRenderTarget::Flags flags)
(since 6.8) QQuickRenderTarget fromOpenGLTexture(uint textureId, uint format, QSize pixelSize, int sampleCount, int arraySize, QQuickRenderTarget::Flags flags)
(since 6.8) QQuickRenderTarget fromVulkanImage(VkImage image, VkImageLayout layout, VkFormat format, VkFormat viewFormat, QSize pixelSize, int sampleCount, int arraySize, QQuickRenderTarget::Flags flags)
(since 6.8) void setDepthTexture(QRhiTexture *texture)

Class QQuickWebEngineProfile:

Class QRectF:

Class QRegion:

(since 6.8) QSpan rects() const
(since 6.8) void setRects(QSpan rects)

Class QRhiTexture:

Class QRhiTextureRenderTargetDescription:

Class QSGMaterial:

Class QSGMaterialShader:

(since 6.8) void setShaderFileName(QSGMaterialShader::Stage stage, const QString &filename, int viewCount)

Class QSizeF:

Class QSpan:

Class QSqlDatabase:

Class QString:

(since 6.8) qsizetype maxSize()
(since 6.8) qsizetype max_size() const
(since 6.8) void resizeForOverwrite(qsizetype size)
(since 6.8) QString & slice(qsizetype pos, qsizetype n)
(since 6.8) QString & slice(qsizetype pos)

Class QStringView:

(since 6.8) qsizetype maxSize()
(since 6.8) qsizetype max_size() const
(since 6.8) QStringView & slice(qsizetype pos, qsizetype n)
(since 6.8) QStringView & slice(qsizetype pos)

Class QStyleHints:

Class QSvgRenderer:

Class QThread:

Class QThreadPool:

Class QTimeZone:

Class QTimer:

(since 6.8) Qt::TimerId id() const

Class QTimerEvent:

(since 6.8) Qt::TimerId id() const

Class QUtf8StringView:

(since 6.8) qsizetype maxSize()
(since 6.8) qsizetype max_size() const
(since 6.8) QUtf8StringView & slice(qsizetype pos, qsizetype n)
(since 6.8) QUtf8StringView & slice(qsizetype pos)

Class QVarLengthArray:

Class QVersionNumber:

(since 6.8) QVersionNumber::const_iterator begin() const
(since 6.8) QVersionNumber::const_iterator cbegin() const
(since 6.8) QVersionNumber::const_iterator cend() const
(since 6.8) QVersionNumber::const_iterator constBegin() const
(since 6.8) QVersionNumber::const_iterator constEnd() const
(since 6.8) QVersionNumber::const_reverse_iterator crbegin() const
(since 6.8) QVersionNumber::const_reverse_iterator crend() const
(since 6.8) QVersionNumber::const_iterator end() const
(since 6.8) QVersionNumber::const_reverse_iterator rbegin() const
(since 6.8) QVersionNumber::const_reverse_iterator rend() const

Class QWebEnginePage:

Class QWebEngineProfile:

Class QWebEngineView:

Class QWidget:

(since 6.8) QWidget * childAt(const QPointF &p) const

New Functions in Namespaces

(since 6.8) void failOnWarning()
(since 6.8) void setThrowOnFail(bool enable)
(since 6.8) void setThrowOnSkip(bool enable)
(since 6.8) void wheelEvent(QWindow *window, QPointF pos, QPoint angleDelta, QPoint pixelDelta, Qt::KeyboardModifiers stateKey, Qt::ScrollPhase phase)

New Global Functions

(since 6.8) Qt::strong_ordering compareThreeWay(std::nullptr_t lhs, Qt::totally_ordered_wrapper<T *> rhs)
(since 6.8) Qt::strong_ordering compareThreeWay(U *lhs, Qt::totally_ordered_wrapper<T *> rhs)
(since 6.8) Qt::strong_ordering compareThreeWay(Qt::totally_ordered_wrapper<T *> lhs, std::nullptr_t rhs)
(since 6.8) Qt::strong_ordering compareThreeWay(Qt::totally_ordered_wrapper<T *> lhs, U *rhs)
(since 6.8) Qt::strong_ordering compareThreeWay(Qt::totally_ordered_wrapper<T *> lhs, Qt::totally_ordered_wrapper<U *> rhs)

New Macros

New Enum Types

(since 6.8) enum class BlendOp { Add, Subtract, ReverseSubtract, Min, Max }
(since 6.8) enum class Error { None, InvalidHeader, UnknownType, UnexpectedEndOfStream, InvalidFormat }
(since 6.8) enum class AnnouncementPoliteness { Polite, Assertive }
(since 6.8) enum class Attribute { Custom, Level, Locale }
(since 6.8) enum class ColorModel { Undefined, Rgb, Gray, Cmyk }
(since 6.8) enum class TransformModel { ThreeComponentMatrix, ElementListProcessing }
(since 6.8) enum class PkceMethod { S256, Plain, None }
(since 6.8) enum class TimerId { Invalid }
(since 6.8) enum class OutOfBoundsPolicy { Reject, Clamp }
(since 6.8) enum class ColorModel { RGB, Grayscale, CMYK, Auto }
(since 6.8) enum class Flag { MultisampleResolve }
(since 6.8) enum class PersistentPermissionsPolicy { AskEveryTime, StoreInMemory, StoreOnDisk }
(since 6.8) enum class PersistentPermissionsPolicy { AskEveryTime, StoreInMemory, StoreOnDisk }
(since 6.8) enum class ContextMenuTrigger { Press, Release }

New Enum Values

New Type Aliases

New Properties

(since 6.8) authenticData : const (since 6.8) nameserverProtocol : (since 6.8) audioBufferInput : const (since 6.8) videoFrameInput : const (since 6.8) audioBufferOutput : const (since 6.8) count : const (since 6.8) persistentPermissionsPolicy : const (since 6.8) numericalPrecisionPolicy : const (since 6.8) numericalPrecisionPolicy : const (since 6.8) autoValue : const (since 6.8) defaultValue : const (since 6.8) generated : const (since 6.8) length : const (since 6.8) metaType : const (since 6.8) precision : const (since 6.8) readOnly : const (since 6.8) requiredStatus : const (since 6.8) tableName : const (since 6.8) value : const (since 6.8) cursorName : const (since 6.8) name : const (since 6.8) forwardOnly : const (since 6.8) numericalPrecisionPolicy : const (since 6.8) positionalBindingEnabled : const (since 6.8) contextMenuTrigger : const (since 6.8) modal : const (since 6.8) modal : const (since 6.8) isMainFrame : const (since 6.8) hasFormData : const

New Variables

(since 6.8) QSGMaterialShader::GraphicsPipelineState::BlendOp opAlpha
(since 6.8) QSGMaterialShader::GraphicsPipelineState::BlendOp opColor
(since 6.8) const QOperatingSystemVersionBase MacOSSequoia

New QML Types

New QML Properties

QML Type BorderImage:

QML Type DebugSettings:

QML Type DirectionalLight:

QML Type Drag:

QML Type GrpcChannelOptions:

QML Type HorizontalHeaderView:

QML Type Image:

QML Type Layout:

QML Type Light:

QML Type MediaPlayer:

QML Type MenuItem:

QML Type PathText:

QML Type PdfSearchModel:

QML Type Popup:

QML Type PrincipledMaterial:

QML Type ShapePath:

QML Type ShellSurface:

QML Type SpecularGlossyMaterial:

QML Type Text:

QML Type TextEdit:

QML Type TextInput:

QML Type VerticalHeaderView:

QML Type WebEngineNavigationRequest:

QML Type WebEngineProfile:

QML Type XdgToplevel:

QML Type pickResult:

New QML Signals

(since 6.8) columnMoved(int logicalIndex, int oldVisualIndex, int newVisualIndex)
(since 6.8) rowMoved(int logicalIndex, int oldVisualIndex, int newVisualIndex)

New QML Methods

QML Type Accessible:

(since 6.8) void announce(string message, AnnouncementPoliteness politeness)

QML Type TableView:

QML Type View3D:

(since 6.8) pickResult pick(float x, float y, Model model)
(since 6.8) List pickSubset(float x, float y, list models)
(since 6.8) setTouchpoint(Item target, point position, int pointId, bool pressed)

QML Type WebEngineProfile:

QML Type Window:

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