New Classes and Functions in Qt 5.14
This page contains a comprehensive list of all new classes and functions introduced in Qt 5.14. Links to new APIs in previous Qt 5 releases are found at the bottom of this page.
- New Namespaces
- New Classes
- New Member Functions
- New Functions in Namespaces
- New Global Functions
- New Macros
- New Enum Types
- New Properties
- New QML Types
- New QML Properties
New Namespaces
| namespace | QColorConstants |
New Classes
- G
- GraphicsPipelineState (QSGMaterialRhiShader)
- GraphicsStateInfo (QQuickWindow)
- QGeoPositionInfoSourceFactoryV2
- QGregorianCalendar
- N
- QNoPicking (Qt3DRender)
New Member Functions
Class QQuickView:
| void | setInitialProperties(const QVariantMap &initialProperties) |
Class QQuickWindow:
| void | afterRenderPassRecording() |
| void | beforeRenderPassRecording() |
| void | beginExternalCommands() |
| QSGTexture * | createTextureFromNativeObject(NativeObjectType type, const void *nativeObjectPtr, int nativeLayout, const QSize &size, CreateTextureOptions options) const |
| void | endExternalCommands() |
Class QSGAbstractRenderer:
| void | setProjectionMatrixToRect(const QRectF &rect, MatrixTransformFlags flags) |
Class QSGRendererInterface:
| bool | isApiRhiBased(GraphicsApi api) |
Class QSGTexture:
| int | comparisonKey() const |
| void | updateRhiTexture(QRhi *rhi, QRhiResourceUpdateBatch *resourceUpdates) |
Class QCanBusDevice:
| QCanBusDevice::CanBusStatus | busStatus() const |
| void | clearError() |
| bool | hasBusStatus() const |
| void | resetController() |
| void | setCanBusStatusGetter(std::function<CanBusStatus ()> busStatusGetter) |
| void | setResetControllerFunction(std::function<void ()> resetter) |
Class QModbusDevice:
| QIODevice * | device() const |
Class QWebSocketServer:
| std::chrono::milliseconds | handshakeTimeout() const |
| int | handshakeTimeoutMS() const |
| void | setHandshakeTimeout(std::chrono::milliseconds msec) |
Class QComboBox:
| void | textActivated(const QString &text) |
| void | textHighlighted(const QString &text) |
Class QDoubleSpinBox:
| void | textChanged(const QString &text) |
Class QFileDialog:
| void | saveFileContent(const QByteArray &fileContent, const QString &fileNameHint) |
Class QFileSystemModel:
| void | setOption(Option option, bool on) |
| bool | testOption(Option option) const |
Class QGraphicsItemAnimation:
| QTransform | transformAt(qreal step) const |
Class QGraphicsWidget:
| void | setContentsMargins(QMarginsF margins) |
| void | setWindowFrameMargins(QMarginsF margins) |
Class QSpinBox:
| void | textChanged(const QString &text) |
Class QWidget:
| QScreen * | screen() const |
Class QTransform:
| QMatrix4x4 | worldMatrix() const |
Class QAbstractTexture:
| void | updateData(const QTextureDataUpdate &update) |
Class QLowEnergyController:
| QLowEnergyController * | createCentral(const QBluetoothAddress &remoteDevice, const QBluetoothAddress &localDevice, QObject *parent) |
Class QAtomicInteger:
| T | loadRelaxed() const |
| void | storeRelaxed(T newValue) |
Class QAtomicPointer:
| T * | loadRelaxed() const |
| void | storeRelaxed(T *newValue) |
Class QBasicTimer:
| QBasicTimer & | operator=(QBasicTimer &&other) |
Class FromBase64Result:
| uint | qHash(const QVarLengthArray<T, Prealloc> &key, uint seed) |
Class QDate:
| QDateTime | endOfDay(const QTimeZone &zone) const |
| bool | setDate(int year, int month, int day, QCalendar cal) |
| QDateTime | startOfDay(const QTimeZone &zone) const |
Class QJsonDocument:
| const QJsonValue | operator[](QStringView key) const |
Class QJsonObject:
| const_iterator | constFind(QStringView key) const |
| bool | contains(QStringView key) const |
| iterator | find(QStringView key) |
| const_iterator | find(QStringView key) const |
| iterator | insert(QStringView key, const QJsonValue &value) |
| iterator | insert(QLatin1String key, const QJsonValue &value) |
| QJsonValue | operator[](QStringView key) const |
| QJsonValueRef | operator[](QStringView key) |
| void | remove(QStringView key) |
| void | remove(QLatin1String key) |
| QJsonValue | take(QStringView key) |
| QJsonValue | take(QLatin1String key) |
| QJsonValue | value(QStringView key) const |
Class QJsonValue:
| const QJsonValue | operator[](QStringView key) const |
Class QLineF:
| IntersectionType | intersects(const QLineF &line, QPointF *intersectionPoint) const |
Class QList:
| uint | qHash(const QVarLengthArray<T, Prealloc> &key, uint seed) |
Class QLocale:
| QDate | toDate(const QString &string, FormatType format, QCalendar cal) const |
| QDate | toDate(const QString &string, const QString &format, QCalendar cal) const |
| QDateTime | toDateTime(const QString &string, FormatType format, QCalendar cal) const |
| QDateTime | toDateTime(const QString &string, const QString &format, QCalendar cal) const |
| QString | toString(const QDate &date, QStringView format, QCalendar cal) const |
| QString | toString(const QDate &date, FormatType format, QCalendar cal) const |
| QString | toString(const QDateTime &dateTime, FormatType format, QCalendar cal) const |
| QString | toString(const QDateTime &dateTime, QStringView format, QCalendar cal) const |
Class QMetaProperty:
| int | relativePropertyIndex() const |
Class QPoint:
| QPoint | transposed() const |
Class QPointF:
| QPointF | transposed() const |
Class QRegExp:
| uint | qHash(const QVarLengthArray<T, Prealloc> &key, uint seed) |
Class QSharedPointer:
| std::shared_ptr<X> | qSharedPointerObjectCast(const std::shared_ptr<T> &src) |
| std::shared_ptr<X> | qSharedPointerObjectCast(std::shared_ptr<T> &&src) |
| std::shared_ptr<X> | qobject_pointer_cast(const std::shared_ptr<T> &src) |
| std::shared_ptr<X> | qobject_pointer_cast(std::shared_ptr<T> &&src) |
Class QString:
| int | compare(QChar ch, Qt::CaseSensitivity cs) const |
| bool | contains(QStringView str, Qt::CaseSensitivity cs) const |
| int | indexOf(QStringView str, int from, Qt::CaseSensitivity cs) const |
| int | lastIndexOf(QStringView str, int from, Qt::CaseSensitivity cs) const |
| QStringList | split(const QString &sep, Qt::SplitBehavior behavior, Qt::CaseSensitivity cs) const |
| QStringList | split(QChar sep, Qt::SplitBehavior behavior, Qt::CaseSensitivity cs) const |
| QStringList | split(const QRegExp &rx, Qt::SplitBehavior behavior) const |
| QStringList | split(const QRegularExpression &re, Qt::SplitBehavior behavior) const |
| QVector<QStringRef> | splitRef(const QString &sep, Qt::SplitBehavior behavior, Qt::CaseSensitivity cs) const |
| QVector<QStringRef> | splitRef(QChar sep, Qt::SplitBehavior behavior, Qt::CaseSensitivity cs) const |
| QVector<QStringRef> | splitRef(const QRegExp &rx, Qt::SplitBehavior behavior) const |
| QVector<QStringRef> | splitRef(const QRegularExpression &re, Qt::SplitBehavior behavior) const |
Class QStringList:
| QStringList | filter(QStringView str, Qt::CaseSensitivity cs) const |
| QString | join(QStringView separator) const |
| QStringList & | replaceInStrings(QStringView before, QStringView after, Qt::CaseSensitivity cs) |
| QStringList & | replaceInStrings(const QString &before, QStringView after, Qt::CaseSensitivity cs) |
| QStringList & | replaceInStrings(QStringView before, const QString &after, Qt::CaseSensitivity cs) |
Class QStringMatcher:
| qsizetype | indexIn(QStringView str, qsizetype from) const |
Class QStringRef:
| int | compare(QChar ch, Qt::CaseSensitivity cs) const |
| bool | contains(QStringView str, Qt::CaseSensitivity cs) const |
| int | indexOf(QStringView str, int from, Qt::CaseSensitivity cs) const |
| int | lastIndexOf(QStringView str, int from, Qt::CaseSensitivity cs) const |
| QVector<QStringRef> | split(const QString &sep, Qt::SplitBehavior behavior, Qt::CaseSensitivity cs) const |
| QVector<QStringRef> | split(QChar sep, Qt::SplitBehavior behavior, Qt::CaseSensitivity cs) const |
Class QStringView:
| uint | qHash(const QVarLengthArray<T, Prealloc> &key, uint seed) |
| int | toWCharArray(wchar_t *array) const |
Class QVarLengthArray:
| uint | qHash(const QVarLengthArray<T, Prealloc> &key, uint seed) |
Class QVector:
| QVector<T> & | operator=(std::initializer_list<T> args) |
| uint | qHash(const QVarLengthArray<T, Prealloc> &key, uint seed) |
| void | swapItemsAt(int i, int j) |
Class qfloat16:
| bool | isNormal() const |
Class QDBusObjectPath:
| QVariant | operator QVariant() const |
Class QAbstractTextDocumentLayout:
| QTextBlock | blockWithMarkerAt(const QPointF &pos) const |
Class QColor:
| QColor | toExtendedRgb() const |
Class QFontMetrics:
| qreal | fontDpi() const |
Class QFontMetricsF:
| qreal | fontDpi() const |
Class QGuiApplication:
| Qt::HighDpiScaleFactorRoundingPolicy | highDpiScaleFactorRoundingPolicy() |
| void | setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy policy) |
Class QImage:
| void | applyColorTransform(const QColorTransform &transform) |
| QColorSpace | colorSpace() const |
| void | convertToColorSpace(const QColorSpace &colorSpace) |
| QImage | convertedToColorSpace(const QColorSpace &colorSpace) const |
| void | setColorSpace(const QColorSpace &colorSpace) |
Class QOpenGLTexture:
| void | setData(int xOffset, int yOffset, int zOffset, int width, int height, int depth, PixelFormat sourceFormat, PixelType sourceType, const void *data, const QOpenGLPixelTransferOptions *const options) |
| void | setData(int xOffset, int yOffset, int zOffset, int width, int height, int depth, int mipLevel, PixelFormat sourceFormat, PixelType sourceType, const void *data, const QOpenGLPixelTransferOptions *const options) |
| void | setData(int xOffset, int yOffset, int zOffset, int width, int height, int depth, int mipLevel, int layer, PixelFormat sourceFormat, PixelType sourceType, const void *data, const QOpenGLPixelTransferOptions *const options) |
| void | setData(int xOffset, int yOffset, int zOffset, int width, int height, int depth, int mipLevel, int layer, CubeMapFace face, PixelFormat sourceFormat, PixelType sourceType, const void *data, const QOpenGLPixelTransferOptions *const options) |
| void | setData(int xOffset, int yOffset, int zOffset, int width, int height, int depth, int mipLevel, int layer, CubeMapFace face, int layerCount, PixelFormat sourceFormat, PixelType sourceType, const void *data, const QOpenGLPixelTransferOptions *const options) |
Class QPlatformFontDatabase:
| bool | isFamilyPopulated(const QString &familyName) |
Class QTextBlockFormat:
Class QTextDocument:
| void | setMarkdown(const QString &markdown, MarkdownFeatures features) |
| QString | toMarkdown(MarkdownFeatures features) const |
Class QTextTableCellFormat:
| qreal | bottomBorder() const |
| QBrush | bottomBorderBrush() const |
| QTextFrameFormat::BorderStyle | bottomBorderStyle() const |
| qreal | leftBorder() const |
| QBrush | leftBorderBrush() const |
| QTextFrameFormat::BorderStyle | leftBorderStyle() const |
| qreal | rightBorder() const |
| QBrush | rightBorderBrush() const |
| QTextFrameFormat::BorderStyle | rightBorderStyle() const |
| void | setBorder(qreal width) |
| void | setBorderBrush(const QBrush &brush) |
| void | setBorderStyle(QTextFrameFormat::BorderStyle style) |
| void | setBottomBorder(qreal width) |
| void | setBottomBorderBrush(const QBrush &brush) |
| void | setBottomBorderStyle(QTextFrameFormat::BorderStyle style) |
| void | setLeftBorder(qreal width) |
| void | setLeftBorderBrush(const QBrush &brush) |
| void | setLeftBorderStyle(QTextFrameFormat::BorderStyle style) |
| void | setRightBorder(qreal width) |
| void | setRightBorderBrush(const QBrush &brush) |
| void | setRightBorderStyle(QTextFrameFormat::BorderStyle style) |
| void | setTopBorder(qreal width) |
| void | setTopBorderBrush(const QBrush &brush) |
| void | setTopBorderStyle(QTextFrameFormat::BorderStyle style) |
| qreal | topBorder() const |
| QBrush | topBorderBrush() const |
| QTextFrameFormat::BorderStyle | topBorderStyle() const |
Class QTextTableFormat:
| bool | borderCollapse() const |
| void | setBorderCollapse(bool borderCollapse) |
Class QWheelEvent:
| QPointF | position() const |
Class QAudioDeviceInfo:
| QString | realm() const |
Class QMediaContent:
| QNetworkRequest | request() const |
Class QNetworkAccessManager:
| bool | autoDeleteReplies() const |
| void | setAutoDeleteReplies(bool shouldAutoDelete) |
Class QNetworkRequest:
| QHttp2Configuration | http2Configuration() const |
| void | setHttp2Configuration(const QHttp2Configuration &configuration) |
Class QJSEngine:
| bool | isInterrupted() const |
| void | setInterrupted(bool interrupted) |
Class QQmlApplicationEngine:
| void | setInitialProperties(const QVariantMap &initialProperties) |
Class QQmlComponent:
| QObject * | createWithInitialProperties(const QVariantMap &initialProperties, QQmlContext *context) |
| void | setInitialProperties(QObject *component, const QVariantMap &properties) |
Class QQmlEngine:
| int | qmlRegisterAnonymousType(const char *uri, int versionMajor) |
| int | qmlRegisterSingletonInstance(const char *uri, int versionMajor, int versionMinor, const char *typeName, QObject *cppObject) |
| int | qmlRegisterSingletonType(const char *uri, int versionMajor, int versionMinor, const char *typeName, std::function<QObject *(QQmlEngine *, QJSEngine *)> callback) |
New Functions in Namespaces
| QTextStream & | bin(QTextStream &stream) |
| QTextStream & | bom(QTextStream &stream) |
| QTextStream & | center(QTextStream &stream) |
| QTextStream & | dec(QTextStream &stream) |
| QTextStream & | endl(QTextStream &stream) |
| QTextStream & | fixed(QTextStream &stream) |
| QTextStream & | flush(QTextStream &stream) |
| QTextStream & | forcepoint(QTextStream &stream) |
| QTextStream & | forcesign(QTextStream &stream) |
| QTextStream & | hex(QTextStream &stream) |
| QTextStream & | left(QTextStream &stream) |
| QTextStream & | lowercasebase(QTextStream &stream) |
| QTextStream & | lowercasedigits(QTextStream &stream) |
| QTextStream & | noforcepoint(QTextStream &stream) |
| QTextStream & | noforcesign(QTextStream &stream) |
| QTextStream & | noshowbase(QTextStream &stream) |
| QTextStream & | oct(QTextStream &stream) |
| QTextStream & | reset(QTextStream &stream) |
| QTextStream & | right(QTextStream &stream) |
| QTextStream & | scientific(QTextStream &stream) |
| QTextStream & | showbase(QTextStream &stream) |
| QTextStream & | uppercasebase(QTextStream &stream) |
| QTextStream & | uppercasedigits(QTextStream &stream) |
| QTextStream & | ws(QTextStream &stream) |
New Global Functions
| T | qExchange(T &obj, U &&newValue) |
| T | qExchange(T &obj, U &&newValue) |
| uint | qHash(const QVarLengthArray<T, Prealloc> &key, uint seed) |
| std::shared_ptr<X> | qSharedPointerObjectCast(std::shared_ptr<T> &&src) |
| std::shared_ptr<X> | qSharedPointerObjectCast(const std::shared_ptr<T> &src) |
| int | qmlRegisterAnonymousType(const char *uri, int versionMajor) |
| int | qmlRegisterSingletonInstance(const char *uri, int versionMajor, int versionMinor, const char *typeName, QObject *cppObject) |
| int | qmlRegisterSingletonType(const char *uri, int versionMajor, int versionMinor, const char *typeName, std::function<QObject *(QQmlEngine *, QJSEngine *)> callback) |
| std::shared_ptr<X> | qobject_pointer_cast(std::shared_ptr<T> &&src) |
| std::shared_ptr<X> | qobject_pointer_cast(const std::shared_ptr<T> &src) |
New Macros
| Q_NAMESPACE_EXPORT(EXPORT_MACRO) | |
| Q_NAMESPACE_EXPORT(EXPORT_MACRO) |
New Enum Types
| enum | BlendFactor { Zero, One, SrcColor, OneMinusSrcColor, DstColor, …, OneMinusSrc1Alpha } |
| enum | ColorMaskComponent { R, G, B, A } |
| enum | CullMode { CullNone, CullFront, CullBack } |
| enum class | ExclusionPolicy { None, Exclusive, ExclusiveOptional } |
| enum class | CanBusStatus { Unknown, Good, Warning, Error, BusOff } |
| enum class | YearRange { First, Last } |
| enum | Option { DontWatchForChanges, DontResolveSymlinks, DontUseCustomDirectoryIcons } |
| enum | NativeObjectType { NativeObjectTexture } |
| enum | MatrixTransformFlag { MatrixTransformFlipY } |
| enum class | MarkerType { NoMarker, Unchecked, Checked } |
| enum class | HighDpiScaleFactorRoundingPolicy { Unset, Round, Ceil, Floor, RoundPreferFloor, PassThrough } |
| enum | SplitBehaviorFlags { KeepEmptyParts, SkipEmptyParts } |
New Properties
|
|
New QML Types
New QML Properties
| autoFadeIn | |
| autoFadeIn | |
| autoFadeIn | |
| autoFadeIn | |
| autoFadeIn | |
| buffersToClear | |
| compositingMode | |
| currentFrame | |
| currentFrame | |
| entity | |
| frameCount | |
| frameCount | |
| lens | |
| restoreMode | |
| transform | |
| viewport | |
| worldMatrix |