New Classes and Functions in Qt 5.11

This page contains a comprehensive list of all new classes and functions introduced in Qt 5.11. Links to new APIs in previous Qt 5 releases are found at the bottom of this page.

New Classes

New Member Functions

Class QAbstractItemModel:

checkIndex(const QModelIndex &index, QAbstractItemModel::CheckIndexOptions options) const

Class QModelIndex:

siblingAtColumn(int column) const
siblingAtRow(int row) const

Class QUuid:

toByteArray(QUuid::StringFormat mode) const
toString(QUuid::StringFormat mode) const

Class QVariant:

fromStdVariant(const int &value)

Class QBitArray:

bits() const
fromBits(const char *data, qsizetype size)

Class QScopedPointer:

get() const

Class QSharedPointer:

get() const

Class QString:

remove(QLatin1String str, Qt::CaseSensitivity cs)

Class QStringView:

isRightToLeft() const

Class QVarLengthArray:

operator+=(T &&value)
operator<<(T &&value)

Class QVector:

operator+=(T &&value)
operator<<(T &&value)

Class QSysInfo:


Class QGamepadManager:

gamepadName(int deviceId) const

Class QIcon:

fallbackSearchPaths()
setFallbackSearchPaths(const QStringList &paths)

Class QGuiApplication:

fontChanged(const QFont &font)

Class QFontMetrics:

horizontalAdvance(QChar ch) const
horizontalAdvance(const QString &text, int len) const

Class QFontMetricsF:

horizontalAdvance(QChar ch) const
horizontalAdvance(const QString &text, int length) const

Class QPlatformWindow:

virtual startSystemMove(const QPoint &pos)

Class QGeoRouteRequest:

extraParameters() const
setExtraParameters(const QVariantMap &extraParameters)

Class QMediaPlayer:

customAudioRoleChanged(const QString &role)
supportedCustomAudioRoles() const

Class QVideoSurfaceFormat:

isMirrored() const
setMirrored(bool mirrored)

Class QHostAddress:

isBroadcast() const
isGlobal() const
isLinkLocal() const
isSiteLocal() const
isUniqueLocalUnicast() const

Class QNetworkAddressEntry:

clearAddressLifetime()
dnsEligibility() const
isLifetimeKnown() const
isPermanent() const
isTemporary() const
preferredLifetime() const
setAddressLifetime(QDeadlineTimer preferred, QDeadlineTimer validity)
setDnsEligibility(QNetworkAddressEntry::DnsEligibilityStatus status)
validityLifetime() const

Class QNetworkInterface:

maximumTransmissionUnit() const
type() const

Class QSslConfiguration:

backendConfiguration() const
setBackendConfiguration(const QMap<QByteArray, QVariant> &backendConfiguration)
setBackendConfigurationOption(const QByteArray &name, const QVariant &value)

Class QQmlContext:

setContextProperties(const QVector<QQmlContext::PropertyPair> &properties)

Class QCanBusDeviceInfo:

channel() const
description() const
serialNumber() const

Class QWebEngineCookieStore:

setCookieFilter(const std::function<bool (const FilterRequest &)> &filterCallback)
setCookieFilter(std::function<bool (const FilterRequest &)> &&filterCallback)

Class QWebEngineUrlRequestJob:

initiator() const

Class QMenuBar:

addAction(const QString &text, Functor functor)
addAction(const QString &text, const Obj *receiver, PointerToMemberFunctionOrFunctor method)

Class QTransform:

fromAxes(const QVector3D &xAxis, const QVector3D &yAxis, const QVector3D &zAxis)
rotateFromAxes(const QVector3D &xAxis, const QVector3D &yAxis, const QVector3D &zAxis)

Class QRemoteObjectHostBase:

proxy(const QUrl &registryUrl, const QUrl &hostUrl, QRemoteObjectHostBase::RemoteObjectNameFilter filter)
reverseProxy(QRemoteObjectHostBase::RemoteObjectNameFilter filter)

New Functions in Namespaces

toString(const std::pair<T1, T2> &pair)
toString(const QPair<T1, T2> &pair)
toString(const QVector4D &v)
toString(const QVector3D &v)
toString(const QVector2D &v)
toString(const QUuid &uuid)
toString(const QStringView &string)

New Global Functions

qFloatFromFloat16(float *out, const qfloat16 *in, qsizetype len)
qFloatToFloat16(qfloat16 *out, const float *in, qsizetype len)

New Enum Types

enum CheckIndexOption { NoOption, IndexIsValid, DoNotUseParent, ParentIsInvalid }
enum DnsEligibilityStatus { DnsEligibilityUnknown, DnsIneligible, DnsEligible }
enum StringFormat { WithBraces, WithoutBraces, Id128 }

New Typedefs

typedef const_reference

New Properties

New QML Types

New QML Properties

New QML Signals

New QML Methods

Additions to Other Qt 5 Releases

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