New Classes and Functions in Qt 5.9 | Qt 5.9

Qt 5.9 | New Classes and Functions in Qt 5.9

Qt 5.9.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 Classes

H
  QHstsPolicy

O
  QOperatingSystemVersion

S
  ScaledPixmapArgument (QIconEngine)
  QStaticByteArrayMatcher

### New Member Functions

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

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

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

| isTabletMode()
| isTabletModeIdentifier()

Class QFileDialog:

| selectedMimeTypeFilter() const

Class QSizePolicy:

| transposed() const

Class QWidget:

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

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)

### New Functions in Namespaces

| addRow(const char *format, ...)

### New Global Functions

| operator!=(QHostAddress::SpecialAddress lhs, const QHostAddress &rhs)
| qChecksum(const char *data, uint len, Qt::ChecksumType standard)

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

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