Qt 5.13 | New Classes and Functions in Qt 5.11

Qt 5.13.2 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

### New Member Functions

Class QVector:

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

Class QScopedPointer:

T * | get() const

Class QVarLengthArray:

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

Class QString:

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

Class QVariant:

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

Class QModelIndex:

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

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

T * | get() const

Class QUuid:

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

Class QSysInfo:

QByteArray | bootUniqueId()
QByteArray | machineUniqueId()

Class QStringView:

bool | isRightToLeft() const

Class QPlatformWindow:

virtual bool | startSystemMove(const QPoint &pos)

Class QIcon:

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

Class QFontMetrics:

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

Class QFontMetricsF:

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

Class QGuiApplication:

void | fontChanged(const QFont &font)

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

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

Class QSslConfiguration:

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

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 | qFloatFromFloat16(float *out, const qfloat16 *in, qsizetype len)
void | qFloatToFloat16(qfloat16 *out, const float *in, qsizetype len)
void | 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

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