Qt 5.13 | New Classes and Functions in Qt 5.9

Qt 5.13.2 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

H
  QHstsPolicy

O
  QOperatingSystemVersion

S
  QStaticByteArrayMatcher
  ScaledPixmapArgument (QIconEngine)

### New Member Functions

Class QAbstractFileEngine:

virtual QByteArray | id() 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 QByteArray:

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

Class QPlatformTheme:

virtual QKeySequence | standardButtonShortcut(int button) 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 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 TouchPoint:

QSizeF | ellipseDiameters() const

Class QImage:

bool | reinterpretAsFormat(QImage::Format format)

Class QTextDocument:

QString | toRawText() const

Class QWindow:

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

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

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

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

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

Class QNetworkReply:

void | redirectAllowed()

Class QWindowsWindowFunctions:

bool | isTabletMode()
const QByteArray | isTabletModeIdentifier()

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, ...)

### 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)
class Q_DECL_IMPORT | qmlRegisterModule(const char *uri, int versionMajor, int versionMinor)
class Q_DECL_IMPORT | qmlRegisterModule(const char *uri, int versionMajor, int versionMinor)

### New Enum Types

enum | RedirectPolicy { ManualRedirectPolicy, NoLessSafeRedirectPolicy, SameOriginRedirectPolicy, UserVerifiedRedirectPolicy }
enum | ChecksumType { ChecksumIso3309, ChecksumItuV41 }

### New Typedefs

typedef | IsTabletModeType

### New Properties

- 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
  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()
| createTemporaryObject()
| createTemporaryQmlObject()
| createTemporaryQmlObject()
| forceLayout()
| forceLayout()
| forceLayout()
| forceLayout()
| forceLayout()
| path()
| path()
| removeMapItemGroup()
| removeMapParameter()
| saveImage()
| shapeToPath()
| touchEvent()
| 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