Qt 5.9 | New Classes and Functions in Qt 5.9

Qt 5.9.9 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 QSystemTrayIcon:

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

Class QUndoCommand:

| isObsolete() const
| setObsolete(bool obsolete)

Class QSplitter:

| replaceWidget(int index, QWidget *widget)

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<<(qfloat16 f)
| operator>>(qfloat16 &f)

Class QDir:

| isEmpty(Filters filters) const

Class QStorageInfo:

| subvolume() const

Class QTemporaryDir:

| filePath(const QString &fileName) const

Class QObject:

| startTimer(std::chrono::milliseconds time, Qt::TimerType timerType)

Class QThreadPool:

| tryTake(QRunnable *runnable)

Class QByteArray:

| toHex(char separator) const

Class QIconEngine:

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

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

| reinterpretAsFormat(Format format)

Class TouchPoint:

| ellipseDiameters() const

Class QOffscreenSurface:

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

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

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

Class QWebSocketServer:

| handleConnection(QTcpSocket *socket) const

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, CubeMapFace cubeFace, int dataSize, const void *data, const QOpenGLPixelTransferOptions * const options)
| setData(int mipLevel, int layer, int layerCount, CubeMapFace cubeFace, PixelFormat sourceFormat, PixelType sourceType, const void *data, const QOpenGLPixelTransferOptions * const options)

Class QTextDocument:

| toRawText() 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 QNetworkAccessManager:

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

Class QNetworkReply:

| redirectAllowed()

Class QNetworkConfiguration:

| connectTimeout() const
| setConnectTimeout(int timeout)

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 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(AnisotropyLevel level)

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

| load(const QWebEngineHttpRequest &request)

Class QFileDialog:

| selectedMimeTypeFilter() const

Class QSizePolicy:

| transposed() const

Class QWidget:

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

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