Qt 5.11 | New Classes and Functions in Qt 5.11

Qt 5.11.3 Reference Documentation

# 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
- New Functions in Namespaces
- New Global Functions
- New Enum Types
- New Typedefs
- New Properties
- New QML Types
- New QML Properties
- New QML Signals
- New QML Methods

### New Classes

A
  QAbstractItemModelTester
  QAbstractRayCaster (Qt3DRender)

C
  QCustomAudioRoleControl

F
  FilterRequest (QWebEngineCookieStore)

G
  QGeoServiceProviderFactoryV2

P
  PropertyPair (QQmlContext)

R
  QRayCaster (Qt3DRender)
  QRayCasterHit (Qt3DRender)

S
  QScreenRayCaster (Qt3DRender)

W
  QWebEngineQuotaRequest
  QWebEngineRegisterProtocolHandlerRequest

### New Member Functions

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

| isSavePageDownload() const

Class QWebEnginePage:

| devToolsPage() const
| inspectedPage() const
| setDevToolsPage(QWebEnginePage *devToolsPage)
| setInspectedPage(QWebEnginePage *page)

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)

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

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

Class QAbstractItemModel:

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

Class QModelIndex:

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

Class QScopedPointer:

| get() const

Class QSharedPointer:

| get() const

Class QString:

| remove(QLatin1String str, Qt::CaseSensitivity cs)

Class QStringView:

| isRightToLeft() const

Class QSysInfo:

| bootUniqueId()
| machineUniqueId()

Class QUuid:

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

Class QVarLengthArray:

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

Class QVariant:

| fromStdVariant(const int &value)

Class QVector:

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

Class QGamepadManager:

| gamepadName(int deviceId) const

Class QIcon:

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

Class QWebEngineUrlRequestJob:

| initiator() const

Class QPlatformWindow:

virtual | startSystemMove(const QPoint &pos)

Class QGeoRouteRequest:

| extraParameters() const
| setExtraParameters(const QVariantMap &extraParameters)

Class QMediaPlayer:

| 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
| 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)

### 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 }
enum | EditFlag { CanUndo, CanRedo, CanCut, CanCopy, ..., CanEditRichly }
enum | MediaFlag { MediaInError, MediaPaused, MediaMuted, MediaLoop, ..., MediaCanRotate }

### New Typedefs

typedef | const_reference

### New Properties

- firstSectionMovable : const
- customAudioRole : const
- persistedStore : const
- mouseQuickSelectionThreshold : const

### New QML Types

A
  AbstractRayCaster

R
  RayCaster

S
  ScreenRayCaster

### New QML Properties

| containmentMask
| customAudioRole
| customAudioRole
| customAudioRole
| extraParameters
| flags
| isAvailable
| routeQuery
| status
| supportedColorFilters
| supportedExposureModes
| supportedFocusModes
| supportedWhiteBalanceModes

### New QML Signals

| doubleTapped()
| singleTapped()

### New QML Methods

| segmentsCount()

## Additions to Other Qt 5 Releases

- 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