New Classes and Functions in Qt 6.7

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

New Namespaces

(since 6.7) namespace QtVideo

New Classes

New Member Functions

Class QAbstractGrpcChannel:

(since 6.7) virtual void call(std::shared_ptr<QGrpcChannelOperation> channelOperation) = 0
(since 6.7) virtual void startBidirStream(std::shared_ptr<QGrpcChannelOperation> channelOperation) = 0
(since 6.7) virtual void startClientStream(std::shared_ptr<QGrpcChannelOperation> channelOperation) = 0
(since 6.7) virtual void startServerStream(std::shared_ptr<QGrpcChannelOperation> channelOperation) = 0

Class QAbstractGrpcClient:

(since 6.7) const std::shared_ptr<QAbstractGrpcChannel> &channel()
(since 6.7) void channelChanged()

Class QAnyStringView:

(since 6.7) QDebug operator<<(QDebug d, QAnyStringView s)

Class QAtomicInteger:

(since 6.7) void qYieldCpu()

Class QByteArrayView:

(since 6.7) std::string_view operator std::string_view() const

Class QCalendar:

(since 6.7) QDate matchCenturyToWeekday(const QCalendar::YearMonthDay &parts, int dow) const

Class QCanDbcFileParser:

(since 6.7) bool parseData(QStringView data)

Class QCborStreamReader:

(since 6.7) QCborStreamReader::StringResult<QByteArray> readUtf8String()
(since 6.7) QByteArray toByteArray()
(since 6.7) bool toByteArray(QByteArray &dst)
(since 6.7) QString toString()
(since 6.7) bool toString(QString &dst)
(since 6.7) QByteArray toUtf8String()
(since 6.7) bool toUtf8String(QByteArray &dst)

Class QCheckBox:

(since 6.7) void checkStateChanged(Qt::CheckState state)

Class QCoreApplication:

(since 6.7) void processEvents(QEventLoop::ProcessEventsFlags flags, QDeadlineTimer deadline)

Class QDBusAbstractInterface:

(since 6.7) bool isInteractiveAuthorizationAllowed() const
(since 6.7) void setInteractiveAuthorizationAllowed(bool enable)

Class QDate:

(since 6.7) QDate fromString(QStringView string, QStringView format, int baseYear, QCalendar cal)

Class QDateTime:

(since 6.7) QDateTime fromString(QStringView string, QStringView format, int baseYear, QCalendar cal)

Class QDebug:

(since 6.7) QDebug &operator<<(std::nullopt_t)
(since 6.7) bool quoteStrings() const
(since 6.7) void setQuoteStrings(bool b)

Class QEventLoop:

(since 6.7) void processEvents(QEventLoop::ProcessEventsFlags flags, QDeadlineTimer deadline)

Class QEventLoopLocker:

(since 6.7) QEventLoopLocker &operator=(QEventLoopLocker &&other)
(since 6.7) void swap(QEventLoopLocker &other)
(since 6.7) void swap(QEventLoopLocker &lhs, QEventLoopLocker &rhs)

Class QFont:

(since 6.7) void clearFeatures()
(since 6.7) void clearVariableAxes()
(since 6.7) QList<QFont::Tag> featureTags() const
(since 6.7) quint32 featureValue(QFont::Tag tag) const
(since 6.7) bool isFeatureSet(QFont::Tag tag) const
(since 6.7) bool isVariableAxisSet(QFont::Tag tag) const
(since 6.7) void setFeature(QFont::Tag tag, quint32 value)
(since 6.7) void setVariableAxis(QFont::Tag tag, float value)
(since 6.7) void unsetFeature(QFont::Tag tag)
(since 6.7) void unsetVariableAxis(QFont::Tag tag)
(since 6.7) QList<QFont::Tag> variableAxisTags() const
(since 6.7) float variableAxisValue(QFont::Tag tag) const

Class QHttpServerRequest:

(since 6.7) QSslConfiguration sslConfiguration() const

Class QJniObject:

(since 6.7) auto callStaticMethod(const char *methodName, Args &&... args)

Class QNetworkAccessManager:

(since 6.7) QNetworkReply *get(const QNetworkRequest &request, QIODevice *data)
(since 6.7) QNetworkReply *get(const QNetworkRequest &request, const QByteArray &data)
(since 6.7) void setTransferTimeout(std::chrono::milliseconds duration)
(since 6.7) std::chrono::milliseconds transferTimeoutAsDuration() const

Class QNetworkRequest:

(since 6.7) void setTransferTimeout(std::chrono::milliseconds duration)
(since 6.7) std::chrono::milliseconds transferTimeoutAsDuration() const

Class QObject:

(since 6.7) T findChild(Qt::FindChildOptions options) const

Class QOpcUaAttributeOperand:

(since 6.7) bool operator!=(const QOpcUaAttributeOperand &lhs, const QOpcUaAttributeOperand &rhs)
(since 6.7) bool operator==(const QOpcUaAttributeOperand &lhs, const QOpcUaAttributeOperand &rhs)

Class QOpcUaClient:

(since 6.7) QOpcUaHistoryReadResponse *readHistoryEvents(const QOpcUaHistoryReadEventRequest &request)
(since 6.7) bool registerNodes(const QStringList &nodesToRegister)
(since 6.7) void registerNodesFinished(QStringList nodesToRegister, QStringList registeredNodeIds, QOpcUa::UaStatusCode statusCode)
(since 6.7) bool unregisterNodes(const QStringList &nodesToUnregister)
(since 6.7) void unregisterNodesFinished(QStringList nodesToUnregister, QOpcUa::UaStatusCode statusCode)

Class QOpcUaContentFilterElement:

(since 6.7) bool operator!=(const QOpcUaContentFilterElement &lhs, const QOpcUaContentFilterElement &rhs)

Class QOpcUaDataValue:

(since 6.7) QVariant operator QVariant() const
(since 6.7) bool operator!=(const QOpcUaDataValue &lhs, const QOpcUaDataValue &rhs)
(since 6.7) bool operator==(const QOpcUaDataValue &lhs, const QOpcUaDataValue &rhs)
(since 6.7) quint16 serverPicoseconds() const
(since 6.7) void setServerPicoseconds(quint16 serverPicoseconds)
(since 6.7) void setSourcePicoseconds(quint16 sourcePicoseconds)
(since 6.7) quint16 sourcePicoseconds() const

Class QOpcUaElementOperand:

(since 6.7) bool operator!=(const QOpcUaElementOperand &lhs, const QOpcUaElementOperand &rhs)
(since 6.7) bool operator==(const QOpcUaElementOperand &lhs, const QOpcUaElementOperand &rhs)

Class QOpcUaHistoryReadRawRequest:

(since 6.7) void setTimestampsToReturn(QOpcUa::TimestampsToReturn timestampsToReturn)
(since 6.7) QOpcUa::TimestampsToReturn timestampsToReturn() const

Class QOpcUaHistoryReadResponse:

(since 6.7) QList<QOpcUaHistoryEvent> events() const
(since 6.7) void readHistoryEventsFinished(const QList<QOpcUaHistoryEvent> &results, QOpcUa::UaStatusCode serviceResult)

Class QOpcUaLiteralOperand:

(since 6.7) bool operator!=(const QOpcUaLiteralOperand &lhs, const QOpcUaLiteralOperand &rhs)
(since 6.7) bool operator==(const QOpcUaLiteralOperand &lhs, const QOpcUaLiteralOperand &rhs)

Class QOpcUaMonitoringParameters:

(since 6.7) QHash<quint32, QOpcUa::UaStatusCode> failedTriggeredItemsStatus() const
(since 6.7) void setFailedTriggeredItemsStatus(const QHash<quint32, QOpcUa::UaStatusCode> &status)
(since 6.7) void setTriggeredItemIds(const QSet<quint32> &ids)
(since 6.7) QSet<quint32> triggeredItemIds() const

Class QOpcUaNode:

(since 6.7) QOpcUaHistoryReadResponse *readHistoryEvents(const QDateTime &startTime, const QDateTime &endTime, QOpcUaMonitoringParameters::EventFilter &filter, quint32 numValues)
(since 6.7) QOpcUaHistoryReadResponse *readHistoryRaw(const QDateTime &startTime, const QDateTime &endTime, quint32 numValues, bool returnBounds, QOpcUa::TimestampsToReturn timestampsToReturn)
(since 6.7) void valueAttributeUpdated(QVariant value)

Class QOpcUaRelativePathElement:

(since 6.7) QVariant operator QVariant() const
(since 6.7) bool operator!=(const QOpcUaRelativePathElement &lhs, const QOpcUaRelativePathElement &rhs)

Class QOpcUaSimpleAttributeOperand:

(since 6.7) bool operator!=(const QOpcUaSimpleAttributeOperand &lhs, const QOpcUaSimpleAttributeOperand &rhs)

Class QProcess:

(since 6.7) void failChildProcessModifier(const char *description, int error)

Class QProtobufMessage:

(since 6.7) QList<QByteArray> unknownFieldData(qint32 field) const
(since 6.7) QList<qint32> unknownFieldNumbers() const

Class QProtobufSerializer:

(since 6.7) void shouldPreserveUnknownFields(bool preserveUnknownFields)

Class QQuickTextDocument:

(since 6.7) void setTextDocument(QTextDocument *document)
(since 6.7) void textDocumentChanged()

Class QQuickView:

(since 6.7) void loadFromModule(QAnyStringView uri, QAnyStringView typeName)

Class QQuickWebEngineProfile:

(since 6.7) void clearHttpCacheCompleted()

Class QQuickWindow:

(since 6.7) QSGTextNode *createTextNode() const

Class QRawFont:

(since 6.7) QByteArray fontTable(QFont::Tag tag) const

Class QRemoteObjectHost:

(since 6.7) void setLocalServerOptions(QLocalServer::SocketOptions options)

Class QRhiColorAttachment:

(since 6.7) int multiViewCount() const
(since 6.7) void setMultiViewCount(int count)

Class QRhiGraphicsPipeline:

(since 6.7) int multiViewCount() const
(since 6.7) void setMultiViewCount(int count)

Class QShader:

(since 6.7) QShader &operator=(QShader &&other)
(since 6.7) void swap(QShader &other)

Class QShaderBaker:

(since 6.7) void setMultiViewCount(int count)

Class QSignalBlocker:

(since 6.7) void dismiss()

Class QSqlQuery:

(since 6.7) bool isPositionalBindingEnabled() const
(since 6.7) void setPositionalBindingEnabled(bool enable)

Class QStaticLatin1StringMatcher:

(since 6.7) auto qMakeStaticCaseInsensitiveLatin1StringMatcher(const char (&)[N] patternToMatch)
(since 6.7) auto qMakeStaticCaseSensitiveLatin1StringMatcher(const char (&)[N] patternToMatch)

Class QString:

(since 6.7) std::u16string_view operator std::u16string_view() const

Class QStringList:

(since 6.7) QStringList filter(const QStringMatcher &matcher) const
(since 6.7) QStringList filter(QLatin1StringView str, Qt::CaseSensitivity cs) const

Class QStringMatcher:

(since 6.7) QStringView patternView() const

Class QStringView:

(since 6.7) bool isLower() const
(since 6.7) bool isUpper() const
(since 6.7) std::u16string_view operator std::u16string_view() const

Class QSvgWidget:

(since 6.7) QtSvg::Options options() const
(since 6.7) void setOptions(QtSvg::Options options)

Class QTemporaryFile:

(since 6.7) QTemporaryFile *createNativeFile(const std::filesystem::path &fileName)
(since 6.7) bool rename(const std::filesystem::path &newName)
(since 6.7) void setFileTemplate(const std::filesystem::path &name)

Class QUtf8StringView:

(since 6.7) std::basic_string_view<QUtf8StringView::storage_type> operator std::basic_string_view<QUtf8StringView::storage_type>() const

Class QVariant:

(since 6.7) QVariant fromMetaType(QMetaType type, const void *copy)
(since 6.7) T qvariant_cast(QVariant &&value)

Class QVulkanWindow:

(since 6.7) void setEnabledFeatures2Modifier(const QVulkanWindow::EnabledFeatures2Modifier &modifier)
(since 6.7) void setEnabledFeaturesModifier(const QVulkanWindow::EnabledFeaturesModifier &modifier)

Class QWaylandSeat:

(since 6.7) void sendUnicodeKeyPressEvent(uint unicode)
(since 6.7) void sendUnicodeKeyReleaseEvent(uint unicode)

Class QWebEnginePage:

(since 6.7) void webAuthUxRequested(QWebEngineWebAuthUxRequest *request)

Class QWebEngineProfile:

(since 6.7) void clearHttpCacheCompleted()

Class QWebEngineUrlRequestInfo:

(since 6.7) QIODevice *requestBody() const

Class QWebEngineUrlRequestJob:

(since 6.7) QIODevice *requestBody() const

New Functions in Namespaces

(since 6.7) Qt::strong_ordering compareThreeWay(Enum lhs, Enum rhs)
(since 6.7) Qt::strong_ordering compareThreeWay(const LeftType *lhs, const RightType *rhs)
(since 6.7) Qt::partial_ordering compareThreeWay(FloatType lhs, IntType rhs)
(since 6.7) Qt::partial_ordering compareThreeWay(IntType lhs, FloatType rhs)
(since 6.7) Qt::partial_ordering compareThreeWay(LeftFloat lhs, RightFloat rhs)
(since 6.7) Qt::strong_ordering compareThreeWay(LeftInt lhs, RightInt rhs)
(since 6.7) void qSleep(std::chrono::milliseconds msecs)
(since 6.7) void qWait(std::chrono::milliseconds msecs)
(since 6.7) bool qWaitFor(Functor predicate, QDeadlineTimer deadline)
(since 6.7) bool qWaitForWindowFocused(QWidget *widget, int timeout)
(since 6.7) bool qWaitForWindowFocused(QWindow *window, int timeout)

New Global Functions

(since 6.7) auto qCompareThreeWay(const LeftType &lhs, const RightType &rhs)
(since 6.7) void qDrawPlainRoundedRect(QPainter *painter, const QRect &rect, qreal rx, qreal ry, const QColor &lineColor, int lineWidth, const QBrush *fill)
(since 6.7) void qDrawPlainRoundedRect(QPainter *painter, int x, int y, int width, int height, qreal rx, qreal ry, const QColor &lineColor, int lineWidth, const QBrush *fill)

New Macros

New Enum Types

(since 6.7) enum class TransitionResolution { Reject, RelativeToBefore, RelativeToAfter, PreferBefore, PreferAfter, …, LegacyBehavior }
(since 6.7) enum class TagSeparator { Dash, Underscore }
(since 6.7) enum class TimestampsToReturn { Source, Server, Both, Neither, Invalid }
(since 6.7) enum Option { Tiny12FeaturesOnly }
(since 6.7) enum class Rotation { None, Clockwise90, Clockwise180, Clockwise270 }

New Enum Values

New Type Aliases

New Properties

New Variables

New QML Types

New QML Properties

QML Type ConvexMeshShape:

(since 6.7) geometry : Geometry

QML Type CustomMaterial:

(since 6.7) destinationAlphaBlend : enumeration
(since 6.7) sourceAlphaBlend : enumeration

QML Type GeoJsonData:

(since 6.7) model : QVariant
(since 6.7) sourceUrl : QUrl

QML Type HeightFieldShape:

(since 6.7) image : Image

QML Type Item:

(since 6.7) focusPolicy : enumeration

QML Type MediaPlayer:

(since 6.7) autoPlay : bool

QML Type PathText:

(since 6.7) font.variableAxes : object

QML Type PhysicsWorld:

(since 6.7) numThreads : int
(since 6.7) reportKinematicKinematicCollisions : bool
(since 6.7) reportStaticKinematicCollisions : bool

QML Type Rectangle:

(since 6.7) bottomLeftRadius : real
(since 6.7) bottomRightRadius : real
(since 6.7) topLeftRadius : real
(since 6.7) topRightRadius : real

QML Type SystemPalette:

(since 6.7) accent : color

QML Type Text:

(since 6.7) font.variableAxes : object

QML Type TextDocument:

(since 6.7) modified : bool
(since 6.7) source : url

QML Type TextEdit:

(preliminary) cursorSelection : QtQuick::TextSelection
(since 6.7) font.variableAxes : object

QML Type TextInput:

(since 6.7) font.variableAxes : object

QML Type Texture:

(since 6.7) textureProvider : RenderExtension

QML Type TriangleMeshShape:

(since 6.7) geometry : Geometry

QML Type Video:

(since 6.7) autoPlay : bool

QML Type View3D:

(since 6.7) effectiveTextureSize : size
(since 6.7) explicitTextureHeight : int
(since 6.7) explicitTextureWidth : int

QML Type Window:

(preliminary) parent : var

QML Type cameraDevice:

(since 6.7) correctionAngle : QtVideo::Rotation

New QML Methods

QML Type StackView:

(since 6.7) Item popCurrentItem(operation)
(since 6.7) Item popToIndex(index, operation)
(since 6.7) Item popToItem(item, operation)
(since 6.7) Item pushItem(item, properties, operation)
(since 6.7) Item pushItem(component, properties, operation)
(since 6.7) Item pushItem(url, properties, operation)
(since 6.7) Item pushItems(items, operation)
(since 6.7) Item replaceCurrentItem(items, operation)
(since 6.7) Item replaceCurrentItem(item, properties, operation)
(since 6.7) Item replaceCurrentItem(component, properties, operation)
(since 6.7) Item replaceCurrentItem(url, properties, operation)

QML Type TextDocument:

(since 6.7) void save()
(since 6.7) void saveAs(url url)

QML Type WaylandSeat:

(since 6.7) void sendUnicodeKeyPressEvent(uint unicode)
(since 6.7) void sendUnicodeKeyReleaseEvent(uint unicode)