New Classes and Functions in Qt 5.8 | Qt 5.9

Qt 5.9 | New Classes and Functions in Qt 5.8

Qt 5.9.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 Classes

D
  QDeadlineTimer

N
  QNetworkDatagram

O
  QOpenGLTextureBlitter

P
  QPointingDeviceUniqueId

S
  QSctpServer
  QSctpSocket
  QSslDiffieHellmanParameters

T
  TakeRowResult (QFormLayout)

### New Member Functions

Class QLibraryInfo:

| version()

Class QMetaEnum:

| isScoped() const

Class QTimer:

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

Class QMutex:

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

Class QWaitCondition:

| notify_all()
| notify_one()

Class QCommandLineOption:

| flags() const
| setFlags(Flags flags)

Class QDateTime:

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

Class QLine:

| center() const

Class QLineF:

| center() const

Class QPointF:

| fromCGPoint(CGPoint point)
| toCGPoint() const

Class QPoint:

| toCGPoint() const

Class QRect:

| toCGRect() const

Class QRectF:

| fromCGRect(CGRect rect)
| toCGRect() const

Class QSize:

| toCGSize() const

Class QSizeF:

| fromCGSize(CGSize size)
| toCGSize() const

Class QLatin1String:

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

Class QStringRef:

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

Class QStringList:

| join(QLatin1String separator) const

Class TouchPoint:

| rotation() const
| uniqueId() const

Class QOpenGLContext:

| getProcAddress(const char *procName) const

Class QPlatformTheme:

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

Class QColor:

| isValidColor(QLatin1String name)
| setNamedColor(QLatin1String name)

Class QRegion:

| begin() const
| cbegin() const
| cend() const
| crbegin() const
| crend() const
| end() const
| rbegin() const
| rend() const

Class QAbstractTextDocumentLayout:

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

Class QFontMetrics:

| capHeight() const

Class QFontMetricsF:

| capHeight() const

Class QRawFont:

| capHeight() const

Class QNetworkAccessManager:

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

Class QHostAddress:

| isEqual(const QHostAddress &other, ConversionMode mode) const
| operator=(SpecialAddress address)
| setAddress(SpecialAddress address)

Class QNetworkProxyFactory:

| usesSystemConfiguration()

Class QSslConfiguration:

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

Class QFormLayout:

| removeRow(QLayout *layout)
| removeRow(QWidget *widget)
| removeRow(int row)
| takeRow(QLayout *layout)
| takeRow(QWidget *widget)
| takeRow(int row)

Class QUndoStack:

| resetClean()

Class QMainWindow:

| tabifiedDockWidgetActivated(QDockWidget *dockWidget)

### New Functions in Namespaces

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

### New Global Functions

| operator!=(QPointingDeviceUniqueId lhs, QPointingDeviceUniqueId rhs)
| operator!=(std::nullptr_t, const QWeakPointer<T> &rhs)
| operator!=(std::nullptr_t, const QSharedPointer<T> &rhs)
| operator!=(std::nullptr_t, const QScopedPointer<T, Cleanup> &rhs)
| operator!=(const QWeakPointer<T> &lhs, std::nullptr_t)
| operator!=(const QSharedPointer<T> &lhs, std::nullptr_t)
| operator!=(const QScopedPointer<T, Cleanup> &lhs, std::nullptr_t)
| operator<<(QDebug debug, const QSslDiffieHellmanParameters &dhparam)
| operator==(const QSslDiffieHellmanParameters &lhs, const QSslDiffieHellmanParameters &rhs)
| operator==(QPointingDeviceUniqueId lhs, QPointingDeviceUniqueId rhs)
| operator==(std::nullptr_t, const QWeakPointer<T> &rhs)
| operator==(std::nullptr_t, const QSharedPointer<T> &rhs)
| operator==(std::nullptr_t, const QScopedPointer<T, Cleanup> &rhs)
| operator==(const QWeakPointer<T> &lhs, std::nullptr_t)
| operator==(const QSharedPointer<T> &lhs, std::nullptr_t)
| operator==(const QScopedPointer<T, Cleanup> &lhs, std::nullptr_t)
| qHash(const QSslDiffieHellmanParameters &dhparam, uint seed)
| qHash(const QRawFont &font, uint seed)
| qHash(QPointingDeviceUniqueId key, uint seed)
| qHash(const QMultiHash<Key, T> &key, uint seed)
| qHash(const QHash<Key, T> &key, uint seed)

### New Macros

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

### New Enum Types

enum | ConversionModeFlag { ConvertV4MappedToIPv4, ConvertV4CompatToIPv4, ConvertUnspecifiedAddress, ConvertLocalHost, TolerantConversion, StrictConversion }

### New Typedefs

typedef | const_iterator
typedef | const_reverse_iterator

### New Properties

- useHoverEffects : const

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