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

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

Class QAbstractItemModel:

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

Class QBitArray:

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

Class QModelIndex:

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

Class QScopedPointer:

T *get() const

Class QSharedPointer:

T *get() const

Class QString:

QString &remove(QLatin1String str, Qt::CaseSensitivity cs)

Class QStringView:

bool isRightToLeft() const

Class QSysInfo:

QByteArray bootUniqueId()
QByteArray machineUniqueId()

Class QVarLengthArray:

QVarLengthArray<T, Prealloc> &operator+=(T &&value)
QVarLengthArray<T, Prealloc> &operator<<(T &&value)

Class QUuid:

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

Class QVariant:

QVariant fromStdVariant(const std::variant<Types...> &value)

Class QVector:

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

Class qfloat16:

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

Class QGamepadManager:

QString gamepadName(int deviceId) const

Class QFontMetricsF:

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

Class QFontMetrics:

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

Class QGuiApplication:

void fontChanged(const QFont &font)

Class QIcon:

QStringList fallbackSearchPaths()
void setFallbackSearchPaths(const QStringList &paths)

Class QGeoRouteRequest:

QVariantMap extraParameters() const
void setExtraParameters(const QVariantMap &extraParameters)

Class QMediaPlayer:

void customAudioRoleChanged(const QString &role)
QStringList supportedCustomAudioRoles() const

Class QVideoSurfaceFormat:

bool isMirrored() const
void setMirrored(bool mirrored)

Class QHostAddress:

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

Class QNetworkAddressEntry:

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

Class QNetworkInterface:

int maximumTransmissionUnit() const
QNetworkInterface::InterfaceType type() const

Class QSslConfiguration:

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

Class QQmlContext:

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

Class QRemoteObjectHostBase:

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

Class QCanBusDeviceInfo:

int channel() const
QString description() const
QString serialNumber() const

Class QWebEngineCookieStore:

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

Class QWebEngineUrlRequestJob:

QUrl initiator() const

Class QMenuBar:

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

New Functions in Namespaces

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

New Global Functions

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

New Enum Types

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

New Type Aliases

(alias) const_reference

New Properties

New QML Types

New QML Properties

New QML Signals

New QML Methods

Additions to Other Qt 5 Releases