New Classes and Functions in Qt 5.9 | Qt 5.14

Qt 5.14 | New Classes and Functions in Qt 5.9

Qt 5.14.1 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
  QEnvironmentLight (Qt3DRender)
  QExtrudedTextGeometry (Qt3DExtras)

G
  QGeoPath

H
  QHelpSearchResult
  QHstsPolicy
  QHumidityFilter
  QHumidityReading
  QHumiditySensor

K
  QKeyframeAnimation (Qt3DAnimation)

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

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

O
  QOperatingSystemVersion

Q
  QQuickWebEngineScript

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

T
  QTexturedMetalRoughMaterial (Qt3DExtras)
  QTextureMaterial (Qt3DExtras)

V
  QVertexBlendAnimation (Qt3DAnimation)

W
  QWebEngineHttpRequest

### New Member Functions

Class QRenderCaptureReply:

bool | saveImage(const QString &fileName) const

Class QSkyboxEntity:

bool | isGammaCorrectEnabled() const
void | setGammaCorrectEnabled(bool enabled)

Class QByteArray:

quint16 | qChecksum(const char *data, uint len, Qt::ChecksumType standard)
QByteArray | toHex(char separator) const

Class QStringRef:

QStringRef::const_iterator | constBegin() const
QStringRef::const_iterator | constEnd() const
bool | isRightToLeft() const

Class QVarLengthArray:

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

Class QObject:

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

Class QStaticByteArrayMatcher:

QStaticByteArrayMatcher<N> | qMakeStaticByteArrayMatcher(const char (&)[N] pattern)

Class QDataStream:

QDataStream & | operator<<(std::nullptr_t ptr)
QDataStream & | operator<<(qfloat16 f)
QDataStream & | operator>>(std::nullptr_t &ptr)
QDataStream & | operator>>(qfloat16 &f)

Class QDir:

bool | isEmpty(QDir::Filters filters) const

Class QStorageInfo:

QByteArray | subvolume() const

Class QTemporaryDir:

QString | filePath(const QString &fileName) const

Class QThreadPool:

bool | tryTake(QRunnable *runnable)

Class QTimeZone:

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

Class QAbstractFileEngine:

virtual QByteArray | id() const

Class TouchPoint:

QSizeF | ellipseDiameters() const

Class QTextDocument:

QString | toRawText() const

Class QPlatformScreen:

virtual int | currentMode() const
virtual QString | manufacturer() const
virtual QString | model() const
virtual QVector<QPlatformScreen::Mode> | modes() const
virtual int | preferredMode() const
virtual QString | serialNumber() const

Class QImage:

bool | reinterpretAsFormat(QImage::Format format)

Class QWindow:

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

Class QPlatformTheme:

virtual QKeySequence | standardButtonShortcut(int button) const

Class QIconEngine:

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

Class QOffscreenSurface:

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

Class QOpenGLShaderProgram:

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

Class QOpenGLTexture:

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

Class QHelpSearchQueryWidget:

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

Class QHelpSearchEngine:

void | search(const QString &searchInput)
QString | searchInput() const
int | searchResultCount() const
QVector<QHelpSearchResult> | searchResults(int start, int end) const

Class QGeoCodeReply:

void | aborted()

Class QGeoRouteReply:

void | aborted()

Class QPlaceReply:

void | aborted()

Class QGeoCameraCapabilities:

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

Class QHostInfo:

int | lookupHost(const QString &name, Functor functor)
int | lookupHost(const QString &name, const QObject *context, Functor functor)

Class QNetworkConfiguration:

int | connectTimeout() const
bool | setConnectTimeout(int timeout)

Class QNetworkAccessManager:

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

Class QNetworkReply:

void | redirectAllowed()

Class QNearFieldTarget:

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

Class QWindowsWindowFunctions:

bool | isTabletMode()
const QByteArray | isTabletModeIdentifier()

Class QGeoRectangle:

void | extendRectangle(const QGeoCoordinate &coordinate)

Class QGeoCircle:

void | extendCircle(const QGeoCoordinate &coordinate)

Class QGeoShape:

QGeoRectangle | boundingGeoRectangle() const

Class QQmlError:

QtMsgType | messageType() const
void | setMessageType(QtMsgType messageType)

Class QQmlEngine:

QString | offlineStorageDatabaseFilePath(const QString &databaseName) const
void | qmlRegisterModule(const char *uri, int versionMajor, int versionMinor)

Class QSGTexture:

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

Class QQuickWindow:

QString | sceneGraphBackend()

Class QQuickStyle:

QStringList | availableStyles()

Class QCanBus:

QList<QCanBusDeviceInfo> | availableDevices(const QString &plugin, QString *errorMessage) const

Class QCanBusFrame:

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

Class QWebSocketServer:

void | handleConnection(QTcpSocket *socket) const

Class QSizePolicy:

QSizePolicy | transposed() const

Class QWidget:

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

Class QFileDialog:

QString | selectedMimeTypeFilter() const

Class QSplitter:

QWidget * | replaceWidget(int index, QWidget *widget)

Class QSystemTrayIcon:

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

Class QUndoCommand:

bool | isObsolete() const
void | setObsolete(bool obsolete)

### New Functions in Namespaces

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

### New Global Functions

bool | operator!=(QHostAddress::SpecialAddress lhs, const QHostAddress &rhs)
quint16 | qChecksum(const char *data, uint len, Qt::ChecksumType standard)
QStaticByteArrayMatcher<N> | qMakeStaticByteArrayMatcher(const char (&)[N] pattern)
void | 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 | ChecksumType { ChecksumIso3309, ChecksumItuV41 }

### New Typedefs

typedef | IsTabletModeType

### New Properties

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

- model : const
- serialNumber : const
- gammaCorrect : 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
  LerpClipBlend
  LevelOfDetail
  LevelOfDetailLoader
  LevelOfDetailSwitch

M
  MemoryBarrier
  MorphingAnimation
  MorphTarget

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
| gammaCorrect
| 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()
| positioningComplete()
| shortcutOverride()
| textEdited()

### New QML Methods

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

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