Qt 5.13 | New Classes and Functions in Qt 5.8

Qt 5.13.2 Reference Documentation

# New Classes and Functions in Qt 5.8

This page contains a comprehensive list of all new classes and functions introduced in Qt 5.8. 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 Macros
- New Enum Types
- New Typedefs
- New Properties
- New QML Types
- New QML Properties
- New QML Signals
- New QML Methods

### New Classes

D
  QDeadlineTimer

M
  QModbusDeviceIdentification
  QModbusExceptionResponse
  QModbusPdu
  QModbusRequest
  QModbusResponse

N
  QNetworkDatagram

O
  QOpenGLTextureBlitter

P
  QPointingDeviceUniqueId

S
  QSctpServer
  QSctpSocket
  QSslDiffieHellmanParameters

T
  TakeRowResult (QFormLayout)

### New Member Functions

Class QStringRef:

void | chop(int n)
int | compare(const QByteArray &other, Qt::CaseSensitivity cs) const

Class QKeyValueIterator:

bool | operator!=(const QScopedPointer<T, Cleanup> &lhs, std::nullptr_t)
bool | operator!=(std::nullptr_t, const QScopedPointer<T, Cleanup> &rhs)
bool | operator!=(const QSharedPointer<T> &lhs, std::nullptr_t)
bool | operator!=(std::nullptr_t, const QSharedPointer<T> &rhs)
bool | operator!=(const QWeakPointer<T> &lhs, std::nullptr_t)
bool | operator!=(std::nullptr_t, const QWeakPointer<T> &rhs)
bool | operator==(const QScopedPointer<T, Cleanup> &lhs, std::nullptr_t)
bool | operator==(std::nullptr_t, const QScopedPointer<T, Cleanup> &rhs)
bool | operator==(const QSharedPointer<T> &lhs, std::nullptr_t)
bool | operator==(std::nullptr_t, const QSharedPointer<T> &rhs)
bool | operator==(const QWeakPointer<T> &lhs, std::nullptr_t)
bool | operator==(std::nullptr_t, const QWeakPointer<T> &rhs)

Class QPair:

bool | operator!=(const QScopedPointer<T, Cleanup> &lhs, std::nullptr_t)
bool | operator!=(std::nullptr_t, const QScopedPointer<T, Cleanup> &rhs)
bool | operator!=(const QSharedPointer<T> &lhs, std::nullptr_t)
bool | operator!=(std::nullptr_t, const QSharedPointer<T> &rhs)
bool | operator!=(const QWeakPointer<T> &lhs, std::nullptr_t)
bool | operator!=(std::nullptr_t, const QWeakPointer<T> &rhs)
bool | operator==(const QScopedPointer<T, Cleanup> &lhs, std::nullptr_t)
bool | operator==(std::nullptr_t, const QScopedPointer<T, Cleanup> &rhs)
bool | operator==(const QSharedPointer<T> &lhs, std::nullptr_t)
bool | operator==(std::nullptr_t, const QSharedPointer<T> &rhs)
bool | operator==(const QWeakPointer<T> &lhs, std::nullptr_t)
bool | operator==(std::nullptr_t, const QWeakPointer<T> &rhs)

Class QVector:

uint | qHash(const QHash<Key, T> &key, uint seed)
uint | qHash(const QMultiHash<Key, T> &key, uint seed)

Class QList:

uint | qHash(const QHash<Key, T> &key, uint seed)
uint | qHash(const QMultiHash<Key, T> &key, uint seed)

Class QRegExp:

uint | qHash(const QHash<Key, T> &key, uint seed)
uint | qHash(const QMultiHash<Key, T> &key, uint seed)

Class QStringList:

QString | join(QLatin1String separator) const

Class QScopedPointer:

bool | operator!=(const QScopedPointer<T, Cleanup> &lhs, std::nullptr_t)
bool | operator!=(std::nullptr_t, const QScopedPointer<T, Cleanup> &rhs)
bool | operator!=(const QSharedPointer<T> &lhs, std::nullptr_t)
bool | operator!=(std::nullptr_t, const QSharedPointer<T> &rhs)
bool | operator!=(const QWeakPointer<T> &lhs, std::nullptr_t)
bool | operator!=(std::nullptr_t, const QWeakPointer<T> &rhs)
bool | operator==(const QScopedPointer<T, Cleanup> &lhs, std::nullptr_t)
bool | operator==(std::nullptr_t, const QScopedPointer<T, Cleanup> &rhs)
bool | operator==(const QSharedPointer<T> &lhs, std::nullptr_t)
bool | operator==(std::nullptr_t, const QSharedPointer<T> &rhs)
bool | operator==(const QWeakPointer<T> &lhs, std::nullptr_t)
bool | operator==(std::nullptr_t, const QWeakPointer<T> &rhs)

Class QVarLengthArray:

bool | operator!=(const QSharedPointer<T> &lhs, std::nullptr_t)
bool | operator!=(std::nullptr_t, const QSharedPointer<T> &rhs)
bool | operator!=(const QWeakPointer<T> &lhs, std::nullptr_t)
bool | operator!=(std::nullptr_t, const QWeakPointer<T> &rhs)
bool | operator==(const QSharedPointer<T> &lhs, std::nullptr_t)
bool | operator==(std::nullptr_t, const QSharedPointer<T> &rhs)
bool | operator==(const QWeakPointer<T> &lhs, std::nullptr_t)
bool | operator==(std::nullptr_t, const QWeakPointer<T> &rhs)

Class QLatin1String:

QLatin1Char | at(int pos) const
QLatin1String | left(int length) const
QLatin1String | mid(int start) const
QLatin1String | mid(int start, int length) const
QLatin1Char | operator[](int pos) const
QLatin1String | right(int length) const

Class QHash:

uint | qHash(const QMultiHash<Key, T> &key, uint seed)

Class QMultiHash:

uint | qHash(const QMultiHash<Key, T> &key, uint seed)

Class QDateTime:

qint64 | currentSecsSinceEpoch()
QDateTime | fromSecsSinceEpoch(qint64 secs, Qt::TimeSpec spec, int offsetSeconds)
QDateTime | fromSecsSinceEpoch(qint64 secs, const QTimeZone &timeZone)
void | setSecsSinceEpoch(qint64 secs)
qint64 | toSecsSinceEpoch() const

Class QSharedPointer:

bool | operator!=(const QSharedPointer<T> &lhs, std::nullptr_t)
bool | operator!=(std::nullptr_t, const QSharedPointer<T> &rhs)
bool | operator!=(const QWeakPointer<T> &lhs, std::nullptr_t)
bool | operator!=(std::nullptr_t, const QWeakPointer<T> &rhs)
bool | operator==(const QSharedPointer<T> &lhs, std::nullptr_t)
bool | operator==(std::nullptr_t, const QSharedPointer<T> &rhs)
bool | operator==(const QWeakPointer<T> &lhs, std::nullptr_t)
bool | operator==(std::nullptr_t, const QWeakPointer<T> &rhs)

Class QWeakPointer:

bool | operator!=(const QSharedPointer<T> &lhs, std::nullptr_t)
bool | operator!=(std::nullptr_t, const QSharedPointer<T> &rhs)
bool | operator!=(const QWeakPointer<T> &lhs, std::nullptr_t)
bool | operator!=(std::nullptr_t, const QWeakPointer<T> &rhs)
bool | operator==(const QSharedPointer<T> &lhs, std::nullptr_t)
bool | operator==(std::nullptr_t, const QSharedPointer<T> &rhs)
bool | operator==(const QWeakPointer<T> &lhs, std::nullptr_t)
bool | operator==(std::nullptr_t, const QWeakPointer<T> &rhs)

Class QCommandLineOption:

QCommandLineOption::Flags | flags() const
void | setFlags(QCommandLineOption::Flags flags)

Class QPoint:

CGPoint | toCGPoint() const

Class QPointF:

QPointF | fromCGPoint(CGPoint point)
CGPoint | toCGPoint() const

Class QLibraryInfo:

QVersionNumber | version()

Class QLine:

QPoint | center() const

Class QLineF:

QPointF | center() const

Class QMetaEnum:

bool | isScoped() const

Class QSize:

CGSize | toCGSize() const

Class QSizeF:

QSizeF | fromCGSize(CGSize size)
CGSize | toCGSize() const

Class QRect:

CGRect | toCGRect() const

Class QRectF:

QRectF | fromCGRect(CGRect rect)
CGRect | toCGRect() const

Class QMutex:

bool | try_lock()
bool | try_lock_for(std::chrono::duration<Rep, Period> duration)
bool | try_lock_until(std::chrono::time_point<Clock, Duration> timePoint)

Class QChar:

bool | operator!=(const QScopedPointer<T, Cleanup> &lhs, std::nullptr_t)
bool | operator!=(std::nullptr_t, const QScopedPointer<T, Cleanup> &rhs)
bool | operator!=(const QSharedPointer<T> &lhs, std::nullptr_t)
bool | operator!=(std::nullptr_t, const QSharedPointer<T> &rhs)
bool | operator!=(const QWeakPointer<T> &lhs, std::nullptr_t)
bool | operator!=(std::nullptr_t, const QWeakPointer<T> &rhs)
bool | operator==(const QScopedPointer<T, Cleanup> &lhs, std::nullptr_t)
bool | operator==(std::nullptr_t, const QScopedPointer<T, Cleanup> &rhs)
bool | operator==(const QSharedPointer<T> &lhs, std::nullptr_t)
bool | operator==(std::nullptr_t, const QSharedPointer<T> &rhs)
bool | operator==(const QWeakPointer<T> &lhs, std::nullptr_t)
bool | operator==(std::nullptr_t, const QWeakPointer<T> &rhs)

Class QStringView:

uint | qHash(const QHash<Key, T> &key, uint seed)
uint | qHash(const QMultiHash<Key, T> &key, uint seed)

Class QPlatformTheme:

virtual QIcon | fileIcon(const QFileInfo &fileInfo, QPlatformTheme::IconOptions iconOptions) const

Class QTimer:

std::chrono::milliseconds | intervalAsDuration() const
std::chrono::milliseconds | remainingTimeAsDuration() const
void | singleShot(std::chrono::milliseconds msec, const QObject *receiver, const char *member)
void | singleShot(std::chrono::milliseconds msec, Qt::TimerType timerType, const QObject *receiver, const char *member)
void | start(std::chrono::milliseconds msec)

Class QWaitCondition:

void | notify_all()
void | notify_one()

Class QColor:

bool | isValidColor(QLatin1String name)
void | setNamedColor(QLatin1String name)

Class QRegion:

QRegion::const_iterator | begin() const
QRegion::const_iterator | cbegin() const
QRegion::const_iterator | cend() const
QRegion::const_reverse_iterator | crbegin() const
QRegion::const_reverse_iterator | crend() const
QRegion::const_iterator | end() const
QRegion::const_reverse_iterator | rbegin() const
QRegion::const_reverse_iterator | rend() const

Class QVector2D:

bool | operator!=(QPointingDeviceUniqueId lhs, QPointingDeviceUniqueId rhs)
bool | operator==(QPointingDeviceUniqueId lhs, QPointingDeviceUniqueId rhs)

Class QPointingDeviceUniqueId:

bool | operator!=(QPointingDeviceUniqueId lhs, QPointingDeviceUniqueId rhs)
bool | operator==(QPointingDeviceUniqueId lhs, QPointingDeviceUniqueId rhs)
uint | qHash(QPointingDeviceUniqueId key, uint seed)
uint | qHash(const QRawFont &font, uint seed)

Class TouchPoint:

qreal | rotation() const
QPointingDeviceUniqueId | uniqueId() const

Class QFont:

uint | qHash(const QRawFont &font, uint seed)

Class QMatrix:

uint | qHash(const QRawFont &font, uint seed)

Class QTransform:

uint | qHash(const QRawFont &font, uint seed)

Class QRawFont:

qreal | capHeight() const
uint | qHash(const QRawFont &font, uint seed)

Class QAbstractTextDocumentLayout:

QTextFormat | formatAt(const QPointF &pos) const
QString | imageAt(const QPointF &pos) const

Class QFontMetrics:

int | capHeight() const

Class QFontMetricsF:

qreal | capHeight() const

Class QOpenGLContext:

QFunctionPointer | getProcAddress(const char *procName) const

Class QNetworkProxyFactory:

bool | usesSystemConfiguration()

Class QOcspResponse:

bool | operator==(const QSslDiffieHellmanParameters &lhs, const QSslDiffieHellmanParameters &rhs)

Class QSslDiffieHellmanParameters:

QDebug | operator<<(QDebug debug, const QSslDiffieHellmanParameters &dhparam)
bool | operator==(const QSslDiffieHellmanParameters &lhs, const QSslDiffieHellmanParameters &rhs)
uint | qHash(const QSslDiffieHellmanParameters &dhparam, uint seed)

Class QUdpSocket:

QNetworkDatagram | receiveDatagram(qint64 maxSize)
qint64 | writeDatagram(const QNetworkDatagram &datagram)

Class QHostAddress:

bool | isEqual(const QHostAddress &other, QHostAddress::ConversionMode mode) const
QDebug | operator<<(QDebug debug, const QSslDiffieHellmanParameters &dhparam)
QHostAddress & | operator=(QHostAddress::SpecialAddress address)
void | setAddress(QHostAddress::SpecialAddress address)

Class QSslConfiguration:

QSslDiffieHellmanParameters | diffieHellmanParameters() const
QByteArray | preSharedKeyIdentityHint() const
void | setDiffieHellmanParameters(const QSslDiffieHellmanParameters &dhparams)
void | setPreSharedKeyIdentityHint(const QByteArray &hint)

Class QSslPreSharedKeyAuthenticator:

bool | operator==(const QSslDiffieHellmanParameters &lhs, const QSslDiffieHellmanParameters &rhs)

Class QNetworkAccessManager:

QNetworkReply * | sendCustomRequest(const QNetworkRequest &request, const QByteArray &verb, const QByteArray &data)
QNetworkReply * | sendCustomRequest(const QNetworkRequest &request, const QByteArray &verb, QHttpMultiPart *multiPart)

Class QNetworkCacheMetaData:

QDebug | operator<<(QDebug debug, const QSslDiffieHellmanParameters &dhparam)

Class QFormLayout:

void | removeRow(int row)
void | removeRow(QWidget *widget)
void | removeRow(QLayout *layout)
QFormLayout::TakeRowResult | takeRow(int row)
QFormLayout::TakeRowResult | takeRow(QWidget *widget)
QFormLayout::TakeRowResult | takeRow(QLayout *layout)

Class QMainWindow:

void | tabifiedDockWidgetActivated(QDockWidget *dockWidget)

Class QUndoStack:

void | resetClean()

### New Functions in Namespaces

QTouchDevice * | createTouchDevice(QTouchDevice::DeviceType devType)
char * | toString(std::nullptr_t)

### New Global Functions

bool | operator!=(QPointingDeviceUniqueId lhs, QPointingDeviceUniqueId rhs)
bool | operator!=(std::nullptr_t, const QWeakPointer<T> &rhs)
bool | operator!=(const QWeakPointer<T> &lhs, std::nullptr_t)
bool | operator!=(std::nullptr_t, const QSharedPointer<T> &rhs)
bool | operator!=(const QSharedPointer<T> &lhs, std::nullptr_t)
bool | operator!=(std::nullptr_t, const QScopedPointer<T, Cleanup> &rhs)
bool | operator!=(const QScopedPointer<T, Cleanup> &lhs, std::nullptr_t)
QDebug | operator<<(QDebug debug, const QSslDiffieHellmanParameters &dhparam)
bool | operator==(const QSslDiffieHellmanParameters &lhs, const QSslDiffieHellmanParameters &rhs)
bool | operator==(QPointingDeviceUniqueId lhs, QPointingDeviceUniqueId rhs)
bool | operator==(std::nullptr_t, const QWeakPointer<T> &rhs)
bool | operator==(const QWeakPointer<T> &lhs, std::nullptr_t)
bool | operator==(std::nullptr_t, const QSharedPointer<T> &rhs)
bool | operator==(const QSharedPointer<T> &lhs, std::nullptr_t)
bool | operator==(std::nullptr_t, const QScopedPointer<T, Cleanup> &rhs)
bool | operator==(const QScopedPointer<T, Cleanup> &lhs, std::nullptr_t)
uint | qHash(const QSslDiffieHellmanParameters &dhparam, uint seed)
uint | qHash(const QRawFont &font, uint seed)
uint | qHash(QPointingDeviceUniqueId key, uint seed)
uint | qHash(const QMultiHash<Key, T> &key, uint seed)
uint | qHash(const QHash<Key, T> &key, uint seed)
class Q_DECL_IMPORT | qmlRegisterUncreatableMetaObject(const QMetaObject &staticMetaObject, const char *uri, int versionMajor, int versionMinor, const char *qmlName, const QString &reason)
class Q_DECL_IMPORT | qmlRegisterUncreatableMetaObject(const QMetaObject &staticMetaObject, const char *uri, int versionMajor, int versionMinor, const char *qmlName, const QString &reason)

### New Macros

| QT_NO_NARROWING_CONVERSIONS_IN_CONNECT
| QT_NO_NARROWING_CONVERSIONS_IN_CONNECT
| Q_ENUM_NS(...)
| Q_ENUM_NS(...)
void | Q_FALLTHROUGH
void | Q_FALLTHROUGH
| Q_FLAG_NS(...)
| Q_FLAG_NS(...)
| Q_NAMESPACE
| Q_NAMESPACE

### New Enum Types

enum | VolumeScale { LinearVolumeScale, CubicVolumeScale, LogarithmicVolumeScale, DecibelVolumeScale }
enum | ConversionModeFlag { ConvertV4MappedToIPv4, ConvertV4CompatToIPv4, ConvertUnspecifiedAddress, ConvertLocalHost, TolerantConversion, StrictConversion }

### New Typedefs

typedef | QModbusDataUnitMap
typedef | QModbusDataUnitMap
typedef | const_iterator
typedef | const_reverse_iterator

### New Properties

- useHoverEffects : const

### New QML Types

A
  AxisAccumulator

B
  BorderImageMesh

D
  Dialog
  DialogButtonBox

L
  LoggingCategory

M
  MenuSeparator

R
  RenderCapture
  RenderCaptureReply
  RoundButton

T
  ToolSeparator

### New QML Properties

| delayed
| font.hintingPreference
| font.hintingPreference
| font.hintingPreference
| imageSource
| overwriteMode
| overwriteMode

### New QML Signals

| binaryMessageReceived()

### New QML Methods

| convertVolume()
| sendBinaryMessage()
| tryVerify()
| tryVerify()

## Additions to Other Qt 5 Releases

- 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