New Classes and Functions in Qt 5.14 | Qt 5.14

Qt 5.14 | New Classes and Functions in Qt 5.14

Qt 5.14.0 Reference Documentation

# 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 Classes
- New Member Functions
- New Global Functions
- New Macros
- New Enum Types
- New Properties
- New QML Types
- New QML Properties
- New QML Methods

### New Classes

C
  QCalendar
  QColorSpace
  QColorTransform

D
  QDepthRange (Qt3DRender)

G
  GraphicsPipelineState (QSGMaterialRhiShader)
  GraphicsStateInfo (QQuickWindow)
  QGeoPositionInfoSourceFactoryV2
  QGregorianCalendar

H
  QHttp2Configuration

J
  QJalaliCalendar
  QJulianCalendar

M
  QMilankovicCalendar

N
  QNoPicking (Qt3DRender)

O
  QOpcUaApplicationRecordDataType
  QOpcUaGdsClient
  QOpcUaKeyPair
  QOpcUaX509CertificateSigningRequest
  QOpcUaX509DistinguishedName
  QOpcUaX509Extension
  QOpcUaX509ExtensionBasicConstraints
  QOpcUaX509ExtensionExtendedKeyUsage
  QOpcUaX509ExtensionKeyUsage
  QOpcUaX509ExtensionSubjectAlternativeName

R
  QRasterMode (Qt3DRender)
  QRecursiveMutex
  QRomanCalendar
  RenderState (QSGMaterialRhiShader)

S
  QSGMaterialRhiShader
  QShaderImage (Qt3DRender)
  QSubtreeEnabler (Qt3DRender)

T
  QTextureDataUpdate (Qt3DRender)

W
  QWaylandIdleInhibitManagerV1
  QWaylandQuickShellIntegration
  QWaylandXdgOutputManagerV1
  QWebEngineFindTextResult

### New Member Functions

Class QTransform:

QMatrix4x4 | worldMatrix() const

Class QAbstractTexture:

void | updateData(const Qt3DRender::QTextureDataUpdate &update)

Class QLowEnergyController:

QLowEnergyController * | createCentral(const QBluetoothAddress &remoteDevice, const QBluetoothAddress &localDevice, QObject *parent)

Class QAtomicInteger:

T | loadRelaxed() const
void | storeRelaxed(T newValue)

Class QStringView:

int | toWCharArray(wchar_t *array) const

Class QString:

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

Class QStringRef:

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

Class QVector:

QVector<T> & | operator=(std::initializer_list<T> args)
void | swapItemsAt(int i, int j)

Class QStringMatcher:

qsizetype | indexIn(QStringView str, qsizetype from) 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 QBasicTimer:

QBasicTimer & | operator=(QBasicTimer &&other)

Class QLocale:

QDate | toDate(const QString &string, QLocale::FormatType format, QCalendar cal) const
QDate | toDate(const QString &string, const QString &format, QCalendar cal) const
QDateTime | toDateTime(const QString &string, QLocale::FormatType format, QCalendar cal) const
QDateTime | toDateTime(const QString &string, const QString &format, QCalendar cal) const
QTime | toTime(const QString &string, QLocale::FormatType format, QCalendar cal) const
QTime | toTime(const QString &string, const QString &format, QCalendar cal) const

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 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 QPoint:

QPoint | transposed() const

Class QPointF:

QPointF | transposed() const

Class QJsonValue:

const QJsonValue | operator[](QStringView key) const

Class QJsonDocument:

const QJsonValue | operator[](QStringView key) const

Class QJsonObject:

QJsonObject::const_iterator | constFind(QStringView key) const
bool | contains(QStringView key) const
QJsonObject::iterator | find(QStringView key)
QJsonObject::const_iterator | find(QStringView key) const
QJsonObject::iterator | insert(QStringView key, const QJsonValue &value)
QJsonObject::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 QLineF:

QLineF::IntersectionType | intersects(const QLineF &line, QPointF *intersectionPoint) const

Class QMetaProperty:

int | relativePropertyIndex() const

Class QDBusObjectPath:

QVariant | operator QVariant() const

Class QTextDocument:

void | setMarkdown(const QString &markdown, QTextDocument::MarkdownFeatures features)
QString | toMarkdown(QTextDocument::MarkdownFeatures features) const

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 QColor:

QColor | toExtendedRgb() const

Class QTextBlockFormat:

QTextBlockFormat::MarkerType | marker() const
void | setMarker(QTextBlockFormat::MarkerType marker)

Class QTextTableFormat:

bool | borderCollapse() const
void | setBorderCollapse(bool borderCollapse)

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 QAbstractTextDocumentLayout:

QTextBlock | blockWithMarkerAt(const QPointF &pos) const

Class QFontMetricsF:

qreal | fontDpi() const

Class QFontMetrics:

qreal | fontDpi() const

Class QGuiApplication:

Qt::HighDpiScaleFactorRoundingPolicy | highDpiScaleFactorRoundingPolicy()
void | setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy policy)

Class QOpenGLTexture:

void | setData(int xOffset, int yOffset, int zOffset, int width, int height, int depth, QOpenGLTexture::PixelFormat sourceFormat, QOpenGLTexture::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, QOpenGLTexture::PixelFormat sourceFormat, QOpenGLTexture::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, QOpenGLTexture::PixelFormat sourceFormat, QOpenGLTexture::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, QOpenGLTexture::CubeMapFace face, QOpenGLTexture::PixelFormat sourceFormat, QOpenGLTexture::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, QOpenGLTexture::CubeMapFace face, int layerCount, QOpenGLTexture::PixelFormat sourceFormat, QOpenGLTexture::PixelType sourceType, const void *data, const QOpenGLPixelTransferOptions *const options)

Class QPlatformFontDatabase:

bool | isFamilyPopulated(const QString &familyName)

Class QKnxNetIpServerInfo:

QHostAddress | hostAddress() const
QNetworkInterface | networkInterface() const

Class QMqttClient:

void | connectToHostEncrypted(const QSslConfiguration &conf)

Class QAudioDeviceInfo:

QString | realm() const

Class QMediaContent:

QNetworkRequest | request() const

Class QNetworkRequest:

QHttp2Configuration | http2Configuration() const
void | setHttp2Configuration(const QHttp2Configuration &configuration)

Class QNetworkAccessManager:

bool | autoDeleteReplies() const
void | setAutoDeleteReplies(bool shouldAutoDelete)

Class QQmlComponent:

QObject * | createWithInitialProperties(const QVariantMap &initialProperties, QQmlContext *context)
void | setInitialProperties(QObject *component, const QVariantMap &properties)

Class QQmlApplicationEngine:

void | setInitialProperties(const QVariantMap &initialProperties)

Class QJSEngine:

bool | isInterrupted() const
void | setInterrupted(bool interrupted)

Class QQmlEngine:

int | qmlRegisterAnonymousType(const char *uri, int versionMajor)

Class QQuickView:

void | setInitialProperties(const QVariantMap &initialProperties)

Class QSGAbstractRenderer:

void | setProjectionMatrixToRect(const QRectF &rect, QSGAbstractRenderer::MatrixTransformFlags flags)

Class QSGRendererInterface:

bool | isApiRhiBased(QSGRendererInterface::GraphicsApi api)

Class QQuickWindow:

void | afterRenderPassRecording()
void | beforeRenderPassRecording()
void | beginExternalCommands()
QSGTexture * | createTextureFromNativeObject(QQuickWindow::NativeObjectType type, const void *nativeObjectPtr, int nativeLayout, const QSize &size, QQuickWindow::CreateTextureOptions options) const
void | endExternalCommands()

Class QSGTexture:

int | comparisonKey() const
void | updateRhiTexture(QRhi *rhi, QRhiResourceUpdateBatch *resourceUpdates)

Class QModbusDevice:

QIODevice * | device() const

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 QWaylandXdgPopup:

void | sendPopupDone()

Class QWaylandSurface:

bool | inputRegionContains(const QPointF &position) const

Class QWaylandXdgPopupV6:

void | sendPopupDone()

Class QWebEngineUrlRequestInfo:

QUrl | initiator() const

Class QWebSocketServer:

std::chrono::milliseconds | handshakeTimeout() const
int | handshakeTimeoutMS() const
void | setHandshakeTimeout(std::chrono::milliseconds msec)

Class QFileDialog:

void | saveFileContent(const QByteArray &fileContent, const QString &fileNameHint)

Class QFileSystemModel:

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

Class QWidget:

QScreen * | screen() const

Class QComboBox:

void | textActivated(const QString &text)
void | textHighlighted(const QString &text)

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 QDoubleSpinBox:

void | textChanged(const QString &text)

### New Global Functions

T | qExchange(T &obj, U &&newValue)
T | qExchange(T &obj, U &&newValue)
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)
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, ..., OneMinusSrc1Alpha }
enum | ColorMaskComponent { R, G, B, A }
enum | CullMode { CullNone, CullFront, CullBack }
enum | ExclusionPolicy { None, Exclusive, ExclusiveOptional }
enum | CanBusStatus { Unknown, Good, Warning, Error, BusOff }
enum | YearRange { First, Last }
enum | Option { DontWatchForChanges, DontResolveSymlinks, DontUseCustomDirectoryIcons }
enum | NativeObjectType { NativeObjectTexture }
enum | MatrixTransformFlag { MatrixTransformFlipY }
enum | MarkerType { NoMarker, Unchecked, Checked }
enum | HighDpiScaleFactorRoundingPolicy { Unset, Round, Ceil, Floor, RoundPreferFloor, PassThrough }
enum | SplitBehaviorFlags { KeepEmptyParts, SkipEmptyParts }

### New Properties

- exclusionPolicy : const
- lens : const
- transform : const
- activatableServiceNames : const
- options : const
- buffersToClear : const
- autoKeepAlive : const

- entity : const
- viewport : const
- mouseDoubleClickDistance : const
- touchDoubleTapDistance : const
- worldMatrix : const
- inhibitsIdle : const

### New QML Types

B
  BoundaryRule

D
  DepthRange

I
  IdleInhibitManagerV1

N
  NoPicking

Q
  QtRemoteObjects

R
  RasterMode
  RegularExpressionValidator

S
  Scene3DView
  ShaderImage
  SubtreeEnabler

T
  TableModel
  TableModelColumn

X
  XdgOutputManagerV1

### New QML Properties

| autoFadeIn
| autoFadeIn
| autoFadeIn
| autoFadeIn
| autoFadeIn
| buffersToClear
| compositingMode
| currentFrame
| currentFrame
| entity
| frameCount
| frameCount
| inhibitsIdle
| lens
| restoreMode
| transform
| viewport
| worldMatrix

### New QML Methods

| sendPopupDone()
| sendPopupDone()

## Additions to Other Qt 5 Releases

- What's New in Qt 5.13
- What's New in Qt 5.12
- What's New in Qt 5.11
- What's New in Qt 5.10
- What's New in Qt 5.9
- What's New in Qt 5.8
- What's New in Qt 5.7
- What's New in Qt 5.6
- What's New in Qt 5.5
- What's New in Qt 5.4
- What's New in Qt 5.3
- What's New in Qt 5.2
- What's New in Qt 5.1
- What's New in Qt 5.0