Qt 5.11 | New Classes and Functions in Qt 5.8

Qt 5.11.3 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 Namespaces
- 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 Namespaces

namespace | QScxmlExecutableContent

### New Classes

A
  QAbstractOAuth
  QAbstractOAuth2
  QAbstractOAuthReplyHandler
  AssignmentInfo (QScxmlExecutableContent)
  QAbstractPhysicalDeviceProxy (Qt3DInput)
  QAxisAccumulator (Qt3DInput)

C
  QCanBus
  QCanBusDevice
  QCanBusFactory
  QCanBusFrame
  QCandlestickLegendMarker
  QCandlestickModelMapper
  QCandlestickSeries
  QCandlestickSet

D
  QDeadlineTimer

E
  EvaluatorInfo (QScxmlExecutableContent)

F
  Filter (QCanBusDevice)
  ForeachLoopBody (QScxmlDataModel)
  ForeachInfo (QScxmlExecutableContent)

H
  QHCandlestickModelMapper

I
  InvokeInfo (QScxmlExecutableContent)

L
  Loader (QScxmlCompiler)

M
  QModbusClient
  QModbusDataUnit
  QModbusDevice
  QModbusDeviceIdentification
  QModbusExceptionResponse
  QModbusPdu
  QModbusReply
  QModbusRequest
  QModbusResponse
  QModbusRtuSerialMaster
  QModbusRtuSerialSlave
  QModbusServer
  QModbusTcpClient
  QModbusTcpServer

N
  QNetworkDatagram

O
  QOAuth1
  QOAuth1Signature
  QOAuth2AuthorizationCodeFlow
  QOpenGLTextureBlitter

P
  QPointingDeviceUniqueId
  ParameterInfo (QScxmlExecutableContent)
  QPaintedTextureImage (Qt3DRender)

R
  QRenderCapture (Qt3DRender)
  QRenderCaptureReply (Qt3DRender)

S
  QSGImageNode
  QSGRectangleNode
  QSGRenderNode
  QSGRendererInterface
  QSctpServer
  QSctpSocket
  QScxmlDynamicScxmlServiceFactory
  QScxmlInvokableService
  QScxmlInvokableServiceFactory
  QScxmlStaticScxmlServiceFactory
  QScxmlTableData
  QSslDiffieHellmanParameters

T
  TimeStamp (QCanBusFrame)
  TakeRowResult (QFormLayout)

V
  QVCandlestickModelMapper

### New Member Functions

Class QUndoStack:

| resetClean()

Class QQuickStyle:

| setFallbackStyle(const QString &style)

Class QPoint:

| toCGPoint() const

Class QPointF:

| fromCGPoint(CGPoint point)
| toCGPoint() const

Class QRect:

| toCGRect() const

Class QRectF:

| fromCGRect(CGRect rect)
| toCGRect() const

Class QMetaEnum:

| isScoped() const

Class QBluetoothDeviceDiscoveryAgent:

| lowEnergyDiscoveryTimeout() const
| setLowEnergyDiscoveryTimeout(int timeout)
| start(QBluetoothDeviceDiscoveryAgent::DiscoveryMethods methods)
| supportedDiscoveryMethods()

Class QLowEnergyController:

| remoteDeviceUuid() const

Class QMutex:

| try_lock()

Class QTimer:

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

Class QCommandLineOption:

| flags() const
| setFlags(QCommandLineOption::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 QSize:

| toCGSize() const

Class QSizeF:

| fromCGSize(CGSize size)
| toCGSize() const

Class QWaitCondition:

| notify_all()
| notify_one()

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

| join(QLatin1String separator) const

Class QStringRef:

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

Class QLibraryInfo:

| version()

Class QOpenGLContext:

| getProcAddress(const char *procName) const

Class TouchPoint:

| rotation() const
| uniqueId() 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 QPlatformTheme:

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

Class QHostAddress:

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

Class QNetworkAccessManager:

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

Class QNetworkProxyFactory:

| usesSystemConfiguration()

Class QSslConfiguration:

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

Class QJSEngine:

| newQMetaObject()
| newQMetaObject(const QMetaObject *metaObject)

Class QJSValue:

| isQMetaObject() const
| toQMetaObject() const

Class QQmlEngine:

| exit(int retCode)

Class QQuickWindow:

| createImageNode() const
| createNinePatchNode() const
| createRectangleNode() const
| rendererInterface() const
| setSceneGraphBackend(QSGRendererInterface::GraphicsApi api)
| setSceneGraphBackend(const QString &backend)

Class QSGEngine:

| createImageNode() const
| createNinePatchNode() const
| createRectangleNode() const
| rendererInterface() const

Class QSerialPort:

| errorOccurred(QSerialPort::SerialPortError error)

Class QQuickWebEngineProfile:

| spellCheckLanguages() const

Class QWebEngineContextMenuData:

| misspelledWord() const
| spellCheckerSuggestions() const

Class QWebEnginePage:

| print(QPrinter *printer, const QWebEngineCallback<bool> &resultCallback)
| replaceMisspelledWord(const QString &replacement)
| save(const QString &filePath, QWebEngineDownloadItem::SavePageFormat format) const

Class QWebEngineProfile:

| isSpellCheckEnabled() const
| setSpellCheckEnabled(bool enable)
| setSpellCheckLanguages(const QStringList &languages)
| spellCheckLanguages() const

Class QWebSocket:

| preSharedKeyAuthenticationRequired(QSslPreSharedKeyAuthenticator *authenticator)

Class QWebSocketServer:

| preSharedKeyAuthenticationRequired(QSslPreSharedKeyAuthenticator *authenticator)

Class QFormLayout:

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

Class QMainWindow:

| tabifiedDockWidgetActivated(QDockWidget *dockWidget)

### New Functions in Namespaces

| convertVolume(qreal volume, QAudio::VolumeScale from, QAudio::VolumeScale to)
| createTouchDevice(QTouchDevice::DeviceType devType)
| toString(int)

### New Global Functions

| operator!=(QPointingDeviceUniqueId lhs, QPointingDeviceUniqueId rhs)
| operator!=(int, const QWeakPointer<T> &rhs)
| operator!=(int, const QSharedPointer<T> &rhs)
| operator!=(int, const QScopedPointer<T, Cleanup> &rhs)
| operator!=(const QWeakPointer<T> &lhs, int)
| operator!=(const QSharedPointer<T> &lhs, int)
| operator!=(const QScopedPointer<T, Cleanup> &lhs, int)
| operator<<(QDebug debug, const QSslDiffieHellmanParameters &dhparam)
| operator==(const QSslDiffieHellmanParameters &lhs, const QSslDiffieHellmanParameters &rhs)
| operator==(QPointingDeviceUniqueId lhs, QPointingDeviceUniqueId rhs)
| operator==(int, const QWeakPointer<T> &rhs)
| operator==(int, const QSharedPointer<T> &rhs)
| operator==(int, const QScopedPointer<T, Cleanup> &rhs)
| operator==(const QWeakPointer<T> &lhs, int)
| operator==(const QSharedPointer<T> &lhs, int)
| operator==(const QScopedPointer<T, Cleanup> &lhs, int)
| 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)
| 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
| Q_ENUM_NS( ...)
| Q_FALLTHROUGH
| Q_FLAG_NS( ...)
| Q_NAMESPACE

### New Enum Types

enum | VolumeScale { LinearVolumeScale, CubicVolumeScale, LogarithmicVolumeScale, DecibelVolumeScale }
enum | DiscoveryMethod { NoMethod, ClassicMethod, LowEnergyMethod }
enum | ConversionModeFlag { ConvertV4MappedToIPv4, ConvertV4CompatToIPv4, ConvertUnspecifiedAddress, ConvertLocalHost, TolerantConversion, StrictConversion }
enum | LegendMarkerType { LegendMarkerTypeArea, LegendMarkerTypeBar, LegendMarkerTypePie, LegendMarkerTypeXY, LegendMarkerTypeBoxPlot, LegendMarkerTypeCandlestick }
enum | anonymous { NoContainer, NoString, NoInstruction, NoEvaluator }
`(obsolete)` enum | DownloadType { Attachment, DownloadAttribute, UserRequested, SavePage }

### New Typedefs

typedef | QModbusDataUnitMap
typedef | const_iterator
typedef | const_reverse_iterator
typedef | ContainerId
typedef | EvaluatorId
typedef | InstructionId
typedef | StringId

### 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()
| tryVerify()
| sendBinaryMessage()

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