Qt 5.8 | New Classes and Functions in Qt 5.4

Qt 5.8.0 Reference Documentation

# New Classes and Functions in Qt 5.4

This page contains a comprehensive list of all new classes and functions introduced in Qt 5.4. 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 Methods

### New Classes

A
  QAbstractPlanarVideoBuffer

B
  QByteArrayList

C
  QCocoaNativeContext

D
  QDistanceFilter
  QDistanceReading
  QDistanceSensor

E
  QEGLNativeContext
  QEnableSharedFromThis

G
  QGLXNativeContext

L
  QLowEnergyCharacteristic
  QLowEnergyController
  QLowEnergyDescriptor
  QLowEnergyService

O
  QOpenGLWidget
  QOpenGLWindow

P
  QPaintDeviceWindow
  QPixelFormat

Q
  QQuickRenderControl

R
  QRasterWindow

S
  QSGAbstractRenderer
  QSGEngine
  QStorageInfo

W
  QWGLNativeContext
  QWebChannel
  QWebChannelAbstractTransport
  QWebEngineCertificateError
  QWebEngineHistory
  QWebEngineHistoryItem
  QWebEnginePage
  QWebEngineSettings
  QWebEngineView

### New Member Functions

Class QXmlSchema:

| operator=(const QXmlSchema &other)

Class QBluetoothDeviceInfo:

| coreConfigurations() const
| setCoreConfigurations(QBluetoothDeviceInfo::CoreConfigurations coreConfigs)

Class QBluetoothTransferReply:

| error(QBluetoothTransferReply::TransferError errorType)

Class QBluetoothUuid:

| characteristicToString(CharacteristicType uuid)
| descriptorToString(DescriptorType uuid)
| protocolToString(ProtocolUuid uuid)

Class QSysInfo:

| buildAbi()
| buildCpuArchitecture()
| currentCpuArchitecture()
| kernelType()
| kernelVersion()
| prettyProductName()
| productType()
| productVersion()

Class QDebug:

| maybeQuote(char c)
| noquote()
| quote()
| resetFormat()

Class QUrl:

| fromUserInput(const QString &userInput, const QString &workingDirectory, UserInputResolutionOptions options)

Class QAbstractProxyModel:

virtual | canDropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) const
virtual | dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent)

Class QTimer:

| singleShot(int msec, Functor functor)
| singleShot(int msec, Qt::TimerType timerType, Functor functor)
| singleShot(int msec, Qt::TimerType timerType, const QObject *context, Functor functor)
| singleShot(int msec, Qt::TimerType timerType, const QObject *receiver, PointerToMemberFunction method)
| singleShot(int msec, const QObject *context, Functor functor)
| singleShot(int msec, const QObject *receiver, PointerToMemberFunction method)

Class QAbstractState:

| activeChanged(bool active)

Class QAbstractTransition:

| targetStateChanged()
| targetStatesChanged()

Class QHistoryState:

| defaultStateChanged()
| historyTypeChanged()

Class QSignalTransition:

| senderObjectChanged()
| signalChanged()

Class QState:

| childModeChanged()
| errorStateChanged()
| initialStateChanged()

Class QStateMachine:

| runningChanged(bool running)

Class QByteArray:

| fromStdString(const std::string &str)
| toStdString() const

Class QCommandLineParser:

| addOptions(const QList<QCommandLineOption> &options)
| showVersion()

Class QRegularExpression:

| optimize() const

Class QEnableSharedFromThis:

| sharedFromThis()
| sharedFromThis() const

Class QWeakPointer:

| lock() const
| swap(QWeakPointer<T> &other)

Class QString:

| splitRef(QChar sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const
| splitRef(const QRegExp &rx, SplitBehavior behavior) const
| splitRef(const QRegularExpression &re, SplitBehavior behavior) const
| splitRef(const QString &sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const

Class QStringRef:

| begin() const
| cbegin() const
| cend() const
| end() const
| split(QChar sep, QString::SplitBehavior behavior, Qt::CaseSensitivity cs) const
| split(const QString &sep, QString::SplitBehavior behavior, Qt::CaseSensitivity cs) const

Class QStringList:

| operator<<(const QList<QString> &other)
| operator=(QList<QString> &&other)
| operator=(const QList<QString> &other)

Class QVector:

| removeAll(const T &t)
| removeOne(const T &t)

Class QImageReader:

| subType() const
| supportedSubTypes() const

Class QImageWriter:

| setSubType(const QByteArray &type)
| subType() const
| supportedSubTypes() const

Class QGuiApplication:

| paletteChanged(const QPalette &palette)
| screenRemoved(QScreen *screen)

Class QOpenGLContext:

| nativeHandle() const
| setNativeHandle(const QVariant &handle)

Class QPlatformDrag:

virtual | ownsDragObject() const

Class QPlatformWindow:

| screenForGeometry(const QRect &newGeometry) const

Class QSurfaceFormat:

| defaultFormat()
| setDefaultFormat(const QSurfaceFormat &format)

Class QOpenGLTexture:

| depthStencilMode() const
| setDepthStencilMode(DepthStencilMode mode)
| target() const

Class QAbstractVideoBuffer:

| mapPlanes(MapMode mode, int *numBytes, int[4] bytesPerLine, uchar *[4] data)

Class QVideoFrame:

| bits(int plane)
| bits(int plane) const
| bytesPerLine(int plane) const
| planeCount() const

Class QSslCertificate:

| importPkcs12(QIODevice *device, QSslKey *key, QSslCertificate *certificate, QList<QSslCertificate> *caCertificates, const QByteArray &passPhrase)
| isSelfSigned() const

Class QSslConfiguration:

| sessionProtocol() const

Class QSslSocket:

| sessionProtocol() const
| sslLibraryBuildVersionNumber()
| sslLibraryBuildVersionString()

Class QPrinterInfo:

| defaultDuplexMode() const
| supportedDuplexModes() const

Class QQuickWindow:

| scheduleRenderJob(QRunnable *job, RenderStage stage)

Class QSGSimpleTextureNode:

| ownsTexture() const
| setOwnsTexture(bool owns)

Class QGraphicsSceneMouseEvent:

| flags() const
| source() const

Class QSqlDriver:

| dbmsType() const

### New Functions in Namespaces

| run(QThreadPool *pool, Function function, ...)

### New Global Functions

| qFormatLogMessage(QtMsgType type, const QMessageLogContext &context, const QString &str)
| qHash(const QSslError &key, uint seed)
| qHash(const QSslCertificate &key, uint seed)
| qHashBits(const void *p, size_t len, uint seed)
| qNextPowerOfTwo(quint64 value)
| qNextPowerOfTwo(qint64 value)
| qNextPowerOfTwo(quint32 value)
| qNextPowerOfTwo(qint32 value)

### New Macros

| Q_LOGGING_CATEGORY(name, string, msgType)
| qUtf8Printable(const QString &str)

### New Enum Types

enum | CoreConfiguration { UnknownCoreConfiguration, LowEnergyCoreConfiguration, BaseRateCoreConfiguration, BaseRateAndLowEnergyCoreConfiguration }
enum | CharacteristicType { DeviceName, Appearance, PeripheralPrivacyFlag, ReconnectionAddress, ..., BarometricPressureTrend }
enum | DescriptorType { UnknownDescriptorType, CharacteristicExtendedProperties, CharacteristicUserDescription, ClientCharacteristicConfiguration, ..., EnvironmentalSensingTriggerSetting }
enum | DepthStencilMode { DepthMode, StencilMode }
enum | RenderStage { BeforeSynchronizingStage, AfterSynchronizingStage, BeforeRenderingStage, AfterRenderingStage, AfterSwapStage, NoStage }
enum | UserInputResolutionOption { DefaultResolution, AssumeLocalFile }

### New Typedefs

typedef | QLowEnergyHandle
typedef | const_iterator

### New Properties

- active : const
- minimumRenderSize : const
- running : const

- autoHide : const
- changeCurrentOnDrag : const
- tabBarAutoHide : const

### New QML Types

A
  ApplicationWindowStyle

F
  FinalState
  FontMetrics

H
  HistoryState

O
  OpenGLInfo

Q
  QAbstractState
  QAbstractTransition
  QSignalTransition

S
  SignalTransition
  State
  StateMachine

T
  TextMetrics
  TimeoutTransition

W
  WebChannel

### New QML Properties

| active
| activeFocusItem
| containsPress
| contentItem
| devicePixelRatio
| ignored
| orientationUpdateMask
| passwordMaskDelay
| sidebarVisible
| visibility

### New QML Methods

| findChild()
| ensureVisible()

## Additions to Other Qt 5 Releases

- What's New in Qt 5.6
- What's New in Qt 5.5
- 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