Qt 5.11 | New Classes and Functions in Qt 5.9

Qt 5.11.3 Reference Documentation

# New Classes and Functions in Qt 5.9

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

### New Classes

A
  QAbstractAnimation (Qt3DAnimation)
  QAbstractAnimationClip (Qt3DAnimation)
  QAbstractClipAnimator (Qt3DAnimation)
  QAbstractClipBlendNode (Qt3DAnimation)
  QAdditiveClipBlend (Qt3DAnimation)
  QAnimationAspect (Qt3DAnimation)
  QAnimationController (Qt3DAnimation)
  QAnimationGroup (Qt3DAnimation)

B
  QBlendedClipAnimator (Qt3DAnimation)

C
  QCanBusDeviceInfo
  QCanBusFactoryV2
  QClipAnimator (Qt3DAnimation)

E
  QExtrudedTextGeometry (Qt3DExtras)
  QEnvironmentLight (Qt3DRender)

G
  QGeoPath

H
  QHelpSearchResult
  QHstsPolicy
  QHumidityFilter
  QHumidityReading
  QHumiditySensor

K
  QKeyframeAnimation (Qt3DAnimation)

L
  QLidFilter
  QLidReading
  QLidSensor
  QLerpClipBlend (Qt3DAnimation)
  QLevelOfDetail (Qt3DRender)
  QLevelOfDetailBoundingSphere (Qt3DRender)
  QLevelOfDetailSwitch (Qt3DRender)

M
  QMorphTarget (Qt3DAnimation)
  QMorphingAnimation (Qt3DAnimation)
  QMetalRoughMaterial (Qt3DExtras)
  QMemoryBarrier (Qt3DRender)

O
  QOperatingSystemVersion

Q
  QQuickWebEngineScript

S
  ScaledPixmapArgument (QIconEngine)
  QStaticByteArrayMatcher
  QScene2D (Qt3DRender::Quick)

T
  QTextureMaterial (Qt3DExtras)
  QTexturedMetalRoughMaterial (Qt3DExtras)

V
  QVertexBlendAnimation (Qt3DAnimation)

W
  QWebEngineHttpRequest

### New Member Functions

Class QUndoCommand:

| isObsolete() const
| setObsolete(bool obsolete)

Class QWidget:

| setWindowFlag(Qt::WindowType flag, bool on)

Class QSkyboxEntity:

| isGammaCorrectEnabled() const
| setGammaCorrectEnabled(bool enabled)

Class QRenderCaptureReply:

| saveImage(const QString &fileName) const

Class QQuickStyle:

| availableStyles()

Class QAbstractFileEngine:

virtual | id() const

Class QDataStream:

| operator<<(int ptr)
| operator<<(qfloat16 f)
| operator>>(int &ptr)
| operator>>(qfloat16 &f)

Class QDir:

| isEmpty(QDir::Filters filters) const

Class QStorageInfo:

| subvolume() const

Class QTemporaryDir:

| filePath(const QString &fileName) const

Class QThreadPool:

| tryTake(QRunnable *runnable)

Class QByteArray:

| toHex(char separator) const

Class QStringRef:

| constBegin() const
| constEnd() const
| isRightToLeft() const

Class QTimeZone:

| fromCFTimeZone(CFTimeZoneRef timeZone)
| fromNSTimeZone(const NSTimeZone *timeZone)
| toCFTimeZone() const
| toNSTimeZone() const

Class QVarLengthArray:

| append(T &&t)
| push_back(T &&t)

Class QHelpSearchEngine:

| search(const QString &searchInput)
| searchInput() const
| searchResultCount() const
| searchResults(int start, int end) const

Class QHelpSearchQueryWidget:

| searchInput() const
| setSearchInput(const QString &searchInput)

Class QIconEngine:

| scaledPixmap(const QSize &size, QIcon::Mode mode, QIcon::State state, qreal scale)

Class QImage:

| reinterpretAsFormat(QImage::Format format)

Class QOffscreenSurface:

| nativeHandle() const
| setNativeHandle(void *handle)

Class TouchPoint:

| ellipseDiameters() const

Class QWindow:

| parent(QWindow::AncestorMode mode) const
| setFlag(Qt::WindowType flag, bool on)

Class QOpenGLShaderProgram:

| addCacheableShaderFromSourceCode(QOpenGLShader::ShaderType type, const QByteArray &source)
| addCacheableShaderFromSourceCode(QOpenGLShader::ShaderType type, const QString &source)
| addCacheableShaderFromSourceCode(QOpenGLShader::ShaderType type, const char *source)
| addCacheableShaderFromSourceFile(QOpenGLShader::ShaderType type, const QString &fileName)

Class QOpenGLTexture:

| setCompressedData(int mipLevel, int layer, int layerCount, QOpenGLTexture::CubeMapFace cubeFace, int dataSize, const void *data, const QOpenGLPixelTransferOptions *const options)
| setData(int mipLevel, int layer, int layerCount, QOpenGLTexture::CubeMapFace cubeFace, QOpenGLTexture::PixelFormat sourceFormat, QOpenGLTexture::PixelType sourceType, const void *data, const QOpenGLPixelTransferOptions *const options)

Class QTextDocument:

| toRawText() const

Class QPlatformScreen:

virtual | currentMode() const
virtual | manufacturer() const
virtual | model() const
virtual | modes() const
virtual | preferredMode() const
virtual | serialNumber() const

Class QPlatformTheme:

virtual | standardButtonShortcut(int button) const

Class QGeoCameraCapabilities:

| maximumFieldOfView() const
| minimumFieldOfView() const
| overzoomEnabled() const
| setMaximumFieldOfView(double maximumFieldOfView)
| setMinimumFieldOfView(double minimumFieldOfView)
| setOverzoomEnabled(bool overzoomEnabled)

Class QGeoCodeReply:

| aborted()

Class QGeoRouteReply:

| aborted()

Class QPlaceReply:

| aborted()

Class QHostInfo:

| lookupHost(const QString &name, Functor functor)
| lookupHost(const QString &name, const QObject *context, Functor functor)
| lookupHost(const QString &name, const QObject *receiver, PointerToMemberFunction function)

Class QNetworkAccessManager:

| addStrictTransportSecurityHosts(const QVector<QHstsPolicy> &knownHosts)
| clearConnectionCache()
| isStrictTransportSecurityEnabled() const
| redirectPolicy() const
| setRedirectPolicy(QNetworkRequest::RedirectPolicy policy)
| setStrictTransportSecurityEnabled(bool enabled)
| strictTransportSecurityHosts() const

Class QNetworkConfiguration:

| connectTimeout() const
| setConnectTimeout(int timeout)

Class QNetworkReply:

| redirectAllowed()

Class QNearFieldTarget:

| disconnect()
| keepConnection() const
| maxCommandLength() const
| setKeepConnection(bool isPersistent)

Class QWindowsWindowFunctions:

| isTabletMode()
| isTabletModeIdentifier()

Class QGeoCircle:

| extendCircle(const QGeoCoordinate &coordinate)

Class QGeoRectangle:

| extendRectangle(const QGeoCoordinate &coordinate)

Class QGeoShape:

| boundingGeoRectangle() const

Class QQmlEngine:

| offlineStorageDatabaseFilePath(const QString &databaseName) const

Class QQmlError:

| messageType() const
| setMessageType(QtMsgType messageType)

Class QQuickWindow:

| sceneGraphBackend()

Class QSGTexture:

| anisotropyLevel() const
| setAnisotropyLevel(QSGTexture::AnisotropyLevel level)

Class QWebEngineView:

| load(const QWebEngineHttpRequest &request)

Class QCanBus:

| availableDevices(const QString &plugin, QString *errorMessage) const

Class QCanBusFrame:

| hasBitrateSwitch() const
| hasErrorStateIndicator() const
| setBitrateSwitch(bool bitrateSwitch)
| setErrorStateIndicator(bool errorStateIndicator)

Class QWebEngineDownloadItem:

| interruptReason() const
| interruptReasonString() const

Class QWebEnginePage:

| load(const QWebEngineHttpRequest &request)
| pdfPrintingFinished(const QString &filePath, bool success)

Class QWebSocketServer:

| handleConnection(QTcpSocket *socket) const

Class QFileDialog:

| selectedMimeTypeFilter() const

Class QSizePolicy:

| transposed() const

Class QSystemTrayIcon:

| showMessage(const QString &title, const QString &message, const QIcon &icon, int millisecondsTimeoutHint)

Class QSplitter:

| replaceWidget(int index, QWidget *widget)

### New Functions in Namespaces

| addRow(const char *format, ...)
| qmlDebug(const QObject *object)
| qmlWarning(const QObject *object)

### New Global Functions

| operator!=(QHostAddress::SpecialAddress lhs, const QHostAddress &rhs)
| qChecksum(const char *data, uint len, Qt::ChecksumType standard)
| qMakeStaticByteArrayMatcher(const char (&)[N] pattern)
| qmlRegisterModule(const char *uri, int versionMajor, int versionMinor)

### New Enum Types

enum | RedirectPolicy { ManualRedirectPolicy, NoLessSafeRedirectPolicy, SameOriginRedirectPolicy, UserVerifiedRedirectPolicy }
enum | AnisotropyLevel { AnisotropyNone, Anisotropy2x, Anisotropy4x, Anisotropy8x, Anisotropy16x }
enum | DownloadInterruptReason { NoReason, FileFailed, FileAccessDenied, FileNoSpace, ..., UserCanceled }
enum | ChecksumType { ChecksumIso3309, ChecksumItuV41 }

### New Typedefs

typedef | IsTabletModeType

### New Properties

- markerShape : const
- mirrored : const
- mirrored : const
- userScripts : const
- manufacturer : const

- model : const
- serialNumber : const
- wheelScrollLines : const
- tabletTracking : const

### New Variables

| AndroidJellyBean
| AndroidJellyBean_MR1
| AndroidJellyBean_MR2
| AndroidKitKat
| AndroidLollipop
| AndroidLollipop_MR1
| AndroidMarshmallow
| AndroidNougat
| AndroidNougat_MR1
| MacOSSierra
| OSXElCapitan
| OSXMavericks
| OSXYosemite
| Windows10
| Windows7
| Windows8
| Windows8_1

### New QML Types

A
  AbstractAnimation
  AbstractClipAnimator
  AbstractClipBlendNode
  AdditiveClipBlend
  AnimationController
  AnimationGroup

B
  BlendedClipAnimator

C
  ClipAnimator

D
  DelayButton

E
  EnvironmentLight

K
  KeyframeAnimation

L
  LerpBlend
  LevelOfDetail
  LevelOfDetailLoader
  LevelOfDetailSwitch

M
  MemoryBarrier
  MorphTarget
  MorphingAnimation

S
  Scene2D
  ScrollView

T
  TouchEventSequence

V
  VertexBlendAnimation

### New QML Properties

| ellipseDiameters
| fontInfo.bold
| fontInfo.family
| fontInfo.italic
| fontInfo.pixelSize
| fontInfo.pointSize
| fontInfo.styleName
| fontInfo.weight
| horizontalOvershoot
| loops
| mapParameters
| mapReady
| markerShape
| mirrored
| mirrored
| notifyInterval
| notifyInterval
| notifyInterval
| pressAndHoldInterval
| rotation
| screen
| sequences
| supportedModes
| supportedResolutions
| uniqueId
| verticalOvershoot
| virtualX
| virtualY

### New QML Signals

| positioningComplete()
| positioningComplete()
| positioningComplete()
| shortcutOverride()
| positioningComplete()
| textEdited()

### New QML Methods

| forceLayout()
| forceLayout()
| forceLayout()
| addMapItemGroup()
| addMapParameter()
| clearMapParameters()
| removeMapItemGroup()
| removeMapParameter()
| path()
| shapeToPath()
| saveImage()
| forceLayout()
| createTemporaryObject()
| createTemporaryQmlObject()
| touchEvent()
| forceLayout()

## Additions to Other Qt 5 Releases

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