Qt 5.6 | New Classes and Functions in Qt 5.6

Qt 5.6.3 Reference Documentation

# New Classes and Functions in Qt 5.6

This page contains a comprehensive list of all new classes and functions introduced in Qt 5.6. Links to new APIs in previous Qt 5 releases are found at the bottom of this page.

- New Classes
- New Member Functions
- 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

A
  QAudioRoleControl
  QAbstractPhysicalDevice (Qt3DInput)
  QAction (Qt3DInput)

C
  QCanBus
  QCanBusDevice
  QCanBusFactory
  QCanBusFrame

F
  Filter (QCanBusDevice)

G
  QGeoCodeReply
  QGeoCodingManager
  QGeoCodingManagerEngine
  QGeoManeuver
  QGeoRoute
  QGeoRouteReply
  QGeoRouteRequest
  QGeoRouteSegment
  QGeoRoutingManager
  QGeoRoutingManagerEngine
  QGeoServiceProvider
  QGeoServiceProviderFactory

K
  key_iterator (QHash)
  key_iterator (QMap)

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

O
  QOpenGLExtraFunctions
  QObjectPicker (Qt3DRender)

P
  QPlace
  QPlaceAttribute
  QPlaceCategory
  QPlaceContent
  QPlaceContentReply
  QPlaceContentRequest
  QPlaceDetailsReply
  QPlaceEditorial
  QPlaceIcon
  QPlaceIdReply
  QPlaceImage
  QPlaceManager
  QPlaceManagerEngine
  QPlaceMatchReply
  QPlaceMatchRequest
  QPlaceRatings
  QPlaceReply
  QPlaceResult
  QPlaceReview
  QPlaceSearchReply
  QPlaceSearchRequest
  QPlaceSearchResult
  QPlaceSearchSuggestionReply
  QPlaceSupplier
  QPlaceUser

Q
  QQuickAsyncImageProvider
  QQuickImageResponse
  QQuickWebEngineProfile

R
  QRgba64

T
  TimeStamp (QCanBusFrame)

V
  QVersionNumber

W
  QWebEngineCookieStore
  QWebEngineFullScreenRequest
  QWebEngineUrlRequestInfo
  QWebEngineUrlRequestInterceptor
  QWebEngineUrlRequestJob
  QWebEngineUrlSchemeHandler

### New Member Functions

Class QBluetoothSocket:

| preferredSecurityFlags() const
| setPreferredSecurityFlags(QBluetooth::SecurityFlags flags)

Class QSysInfo:

| machineHostName()

Class QDebug:

| setVerbosity(int verbosityLevel)
| verbosity() const

Class QDir:

| listSeparator()

Class QProcess:

| errorOccurred(QProcess::ProcessError error)

Class QStorageInfo:

| blockSize() const

Class QTemporaryDir:

| errorString() const

Class QTextStream:

| operator<<(const QStringRef &string)

Class QItemSelectionRange:

| swap(QItemSelectionRange &other)

Class QPointer:

| swap(QPointer &other)

Class QHistoryState:

| defaultTransition() const
| defaultTransitionChanged()
| setDefaultTransition(QAbstractTransition *transition)

Class QByteArray:

| crbegin() const
| crend() const
| rbegin()
| rbegin() const
| rend()
| rend() const

Class QCommandLineOption:

| isHidden() const
| setHidden(bool hide)

Class QCommandLineParser:

| setOptionsAfterPositionalArgumentsMode(OptionsAfterPositionalArgumentsMode parsingMode)

Class QHash:

| keyBegin() const
| keyEnd() const

Class QLinkedList:

| crbegin() const
| crend() const
| rbegin()
| rbegin() const
| rend()
| rend() const

Class QList:

| constFirst() const
| constLast() const
| crbegin() const
| crend() const
| rbegin()
| rbegin() const
| rend()
| rend() const

Class QMap:

| equal_range(const Key &key) const
| keyBegin() const
| keyEnd() const

Class QSet:

| crbegin() const
| crend() const
| intersects(const QSet<T> &other) const
| rbegin()
| rbegin() const
| rend()
| rend() const

Class QString:

| crbegin() const
| crend() const
| rbegin()
| rbegin() const
| rend()
| rend() const

Class QStringRef:

| truncate(int position)

Class QVarLengthArray:

| crbegin() const
| crend() const
| rbegin()
| rbegin() const
| rend()
| rend() const

Class QVector:

| append(T &&value)
| constFirst() const
| constLast() const
| crbegin() const
| crend() const
| move(int from, int to)
| push_back(T &&value)
| rbegin()
| rbegin() const
| rend()
| rend() const

Class QXmlStreamStringRef:

| swap(QXmlStreamStringRef &other)

Class QDBusMessage:

| createTargetedSignal(const QString &service, const QString &path, const QString &interface, const QString &name)

Class QIcon:

| isMask() const
| setIsMask(bool isMask)

Class QImage:

| pixelColor(const QPoint &position) const
| pixelColor(int x, int y) const
| setPixelColor(const QPoint &position, const QColor &color)
| setPixelColor(int x, int y, const QColor &color)

Class QImageReader:

| gamma() const
| setGamma(float gamma)

Class QStandardItem:

| isAutoTristate() const
| isUserTristate() const
| setAutoTristate(bool tristate)
| setUserTristate(bool tristate)

Class QGuiApplication:

| isFallbackSessionManagementEnabled()
| setFallbackSessionManagementEnabled(bool enabled)

Class QOpenGLFramebufferObject:

| addColorAttachment(const QSize &size, GLenum internalFormat)
| addColorAttachment(int width, int height, GLenum internalFormat)
| sizes() const
| takeTexture(int colorAttachmentIndex)
| textures() const
| toImage(bool flipped, int colorAttachmentIndex) const

Class QColor:

| fromRgba64(QRgba64 rgba64)
| fromRgba64(ushort r, ushort g, ushort b, ushort a)
| rgba64() const
| setRgba64(QRgba64 rgba)

Class QPaintDevice:

| devicePixelRatioF() const

Class QTextLayout:

| clearFormats()
| formats() const
| setFormats(const QVector<FormatRange> &formats)

Class QMediaPlayer:

| audioRoleChanged(QAudio::Role role)
| supportedAudioRoles() const

Class QNetworkReply:

| redirected(const QUrl &url)

Class QNetworkRequest:

| maximumRedirectsAllowed() const
| setMaximumRedirectsAllowed(int maxRedirectsAllowed)

Class QHostAddress:

| isMulticast() const

Class QWindowsWindowFunctions:

| setHasBorderInFullScreen(QWindow *window, bool border)
| setHasBorderInFullScreenIdentifier()

Class QQmlDebuggingEnabler:

| connectToLocalDebugger(const QString &socketFileName, StartMode mode)

Class QJSEngine:

| installExtensions(Extensions extensions, const QJSValue &object)

Class QQuickTextureFactory:

| textureFactoryForImage(const QImage &image)

Class QWebEngineDownloadItem:

| mimeType() const

Class QWebEnginePage:

| renderProcessTerminated(RenderProcessTerminationStatus terminationStatus, int exitCode)

Class QWebEngineProfile:

| cookieStore()
| httpAcceptLanguage() const
| installUrlSchemeHandler(const QByteArray &scheme, QWebEngineUrlSchemeHandler *handler)
| removeAllUrlSchemeHandlers()
| removeUrlScheme(const QByteArray &scheme)
| removeUrlSchemeHandler(QWebEngineUrlSchemeHandler *handler)
| setHttpAcceptLanguage(const QString &httpAcceptLanguage)
| setRequestInterceptor(QWebEngineUrlRequestInterceptor *interceptor)
| urlSchemeHandler(const QByteArray &scheme) const

Class QWebEngineView:

| renderProcessTerminated(QWebEnginePage::RenderProcessTerminationStatus terminationStatus, int exitCode)

Class QWebSocket:

| open(const QNetworkRequest &request)
| request() const

Class QDesktopWidget:

| primaryScreenChanged()

Class QMainWindow:

| resizeDocks(const QList<QDockWidget *> &docks, const QList<int> &sizes, Qt::Orientation orientation)

Class QMenu:

| addAction(const QIcon &icon, const QString &text, Functor functor, const QKeySequence &shortcut)
| addAction(const QIcon &icon, const QString &text, const QObject *context, Functor functor, const QKeySequence &shortcut)
| addAction(const QIcon &icon, const QString &text, const QObject *receiver, PointerToMemberFunction method, const QKeySequence &shortcut)
| addAction(const QString &text, Functor functor, const QKeySequence &shortcut)
| addAction(const QString &text, const QObject *context, Functor functor, const QKeySequence &shortcut)
| addAction(const QString &text, const QObject *receiver, PointerToMemberFunction method, const QKeySequence &shortcut)

Class QToolBar:

| addAction(const QIcon &icon, const QString &text, Functor functor)
| addAction(const QIcon &icon, const QString &text, const QObject *context, Functor functor)
| addAction(const QIcon &icon, const QString &text, const QObject *receiver, PointerToMemberFunction method)
| addAction(const QString &text, Functor functor)
| addAction(const QString &text, const QObject *context, Functor functor)
| addAction(const QString &text, const QObject *receiver, PointerToMemberFunction method)

### New Global Functions

| operator<(const QVector<T> &lhs, const QVector<T> &rhs)
| operator<(const QVarLengthArray<T, Prealloc1> &lhs, const QVarLengthArray<T, Prealloc2> &rhs)
| operator<(const QList<T> &lhs, const QList<T> &rhs)
| operator<=(const QVector<T> &lhs, const QVector<T> &rhs)
| operator<=(const QVarLengthArray<T, Prealloc1> &lhs, const QVarLengthArray<T, Prealloc2> &rhs)
| operator<=(const QList<T> &lhs, const QList<T> &rhs)
| operator>(const QVector<T> &lhs, const QVector<T> &rhs)
| operator>(const QVarLengthArray<T, Prealloc1> &lhs, const QVarLengthArray<T, Prealloc2> &rhs)
| operator>(const QList<T> &lhs, const QList<T> &rhs)
| operator>=(const QVector<T> &lhs, const QVector<T> &rhs)
| operator>=(const QVarLengthArray<T, Prealloc1> &lhs, const QVarLengthArray<T, Prealloc2> &rhs)
| operator>=(const QList<T> &lhs, const QList<T> &rhs)
| qAlpha(QRgba64 rgba64)
| qBlue(QRgba64 rgba64)
| qCountLeadingZeroBits(quint8 v)
| qCountLeadingZeroBits(quint64 v)
| qCountLeadingZeroBits(quint32 v)
| qCountLeadingZeroBits(quint16 v)
| qCountTrailingZeroBits(quint8 v)
| qCountTrailingZeroBits(quint64 v)
| qCountTrailingZeroBits(quint32 v)
| qCountTrailingZeroBits(quint16 v)
| qGlobalQHashSeed()
| qGreen(QRgba64 rgba64)
| qHash(QSizePolicy key, uint seed)
| qHash(const QTransform &key, uint seed)
| qHash(const QMatrix &key, uint seed)
| qHash(const QKeySequence &key, uint seed)
| qHash(const QVersionNumber &key, uint seed)
| qHash(const QVector<T> &key, uint seed)
| qHash(const QRegularExpression &key, uint seed)
| qHash(const QRegExp &key, uint seed)
| qHash(const QLocale &key, uint seed)
| qHash(const QList<T> &key, uint seed)
| qHash(const QMimeType &key, uint seed)
| qHash(const QUrlQuery &key, uint seed)
| qPremultiply(QRgba64 rgba64)
| qRed(QRgba64 rgba64)
| qRgba64(quint64 c)
| qRgba64(quint16 r, quint16 g, quint16 b, quint16 a)
| qSetGlobalQHashSeed(int newSeed)
| qUnpremultiply(QRgba64 rgba64)

### New Macros

| QTRY_VERIFY2(condition, message)
| QTRY_VERIFY2_WITH_TIMEOUT(condition, message, timeout)
| QT_NO_PROCESS_COMBINED_ARGUMENT_START

### New Enum Types

enum | Role { UnknownRole, MusicRole, VideoRole, VoiceCommunicationRole, ..., GameRole }
enum | OptionsAfterPositionalArgumentsMode { ParseAsOptions, ParseAsPositionalArguments }
enum | RenderProcessTerminationStatus { NormalTerminationStatus, AbnormalTerminationStatus, CrashedTerminationStatus, KilledTerminationStatus }
enum | EnterKeyType { EnterKeyDefault, EnterKeyReturn, EnterKeyDone, EnterKeyGo, ..., EnterKeyPrevious }

### New Typedefs

typedef | const_reverse_iterator
typedef | reverse_iterator
typedef | const_reverse_iterator
typedef | reverse_iterator
typedef | const_reverse_iterator
typedef | reverse_iterator
typedef | QModbusDataUnitMap
typedef | const_reverse_iterator
typedef | reverse_iterator
typedef | const_reverse_iterator
typedef | reverse_iterator
typedef | const_reverse_iterator
typedef | reverse_iterator
typedef | const_reverse_iterator
typedef | reverse_iterator

### New Properties

supportedSchemes : const audioRole : const mirrorVertically : const | showIsMaximized : const backgroundColor : const

### New QML Types

A
  AbstractPhysicalDevice
  Action

E
  EnterKey

L
  Light

P
  Playlist
  PlaylistItem

Q
  QuaternionAnimation

T
  Transform

### New QML Properties

| audioRole
| audioRole
| audioRole
| bottomPadding
| bottomPadding
| bottomPadding
| bottomPadding
| bottomPadding
| bottomPadding
| bottomPadding
| color
| font.styleName
| font.styleName
| font.styleName
| layer.textureMirroring
| leftPadding
| leftPadding
| leftPadding
| leftPadding
| leftPadding
| leftPadding
| leftPadding
| nativeText
| padding
| padding
| padding
| padding
| padding
| padding
| padding
| playlist
| playlist
| playlist
| portableText
| rightPadding
| rightPadding
| rightPadding
| rightPadding
| rightPadding
| rightPadding
| rightPadding
| textureMirroring
| topPadding
| topPadding
| topPadding
| topPadding
| topPadding
| topPadding
| topPadding
| visibleRegion

### New QML Signals

| editingFinished()

### New QML Methods

| supportedAudioRoles()
| indexOf()
| supportedAudioRoles()
| append()
| clear()
| get()
| insert()
| move()
| remove()
| supportedAudioRoles()

## Additions to Other Qt 5 Releases

- 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