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 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)
- G
- QGeoPath
- L
- QLidFilter
- QLidReading
- QLidSensor
- QLerpClipBlend (Qt3DAnimation)
- QLevelOfDetail (Qt3DRender)
- QLevelOfDetailBoundingSphere (Qt3DRender)
- QLevelOfDetailSwitch (Qt3DRender)
New Member Functions
Class QByteArray:
| quint16 | qChecksum(const char *data, uint len, Qt::ChecksumType standard) | 
| QByteArray | toHex(char separator) const | 
Class QObject:
| int | startTimer(std::chrono::milliseconds time, Qt::TimerType timerType) | 
Class QStringRef:
| QStringRef::const_iterator | constBegin() const | 
| QStringRef::const_iterator | constEnd() const | 
| bool | isRightToLeft() const | 
Class QVarLengthArray:
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 QHelpSearchEngine:
| void | search(const QString &searchInput) | 
| QString | searchInput() const | 
| int | searchResultCount() const | 
| QVector<QHelpSearchResult> | searchResults(int start, int end) const | 
Class QHelpSearchQueryWidget:
| QString | searchInput() const | 
| void | setSearchInput(const QString &searchInput) | 
Class TouchPoint:
| QSizeF | ellipseDiameters() const | 
Class QImage:
| bool | reinterpretAsFormat(QImage::Format format) | 
Class QTextDocument:
| QString | toRawText() const | 
Class QWindow:
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 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 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 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 QPlatformTheme:
| virtual QKeySequence | standardButtonShortcut(int button) 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 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 QNearFieldTarget:
| bool | disconnect() | 
| bool | keepConnection() const | 
| int | maxCommandLength() const | 
| bool | setKeepConnection(bool isPersistent) | 
Class QGeoShape:
| QGeoRectangle | boundingGeoRectangle() const | 
Class QGeoRectangle:
| void | extendRectangle(const QGeoCoordinate &coordinate) | 
Class QGeoCircle:
| void | extendCircle(const QGeoCoordinate &coordinate) | 
Class QQmlError:
| QtMsgType | messageType() const | 
| void | setMessageType(QtMsgType messageType) | 
Class QQmlEngine:
| QString | offlineStorageDatabaseFilePath(const QString &databaseName) const | 
| QQmlInfo | qmlDebug(const QObject *object) | 
| void | qmlRegisterModule(const char *uri, int versionMajor, int versionMinor) | 
| QQmlInfo | qmlWarning(const QObject *object) | 
Class QQuickWindow:
| QString | sceneGraphBackend() | 
Class QSGTexture:
| QSGTexture::AnisotropyLevel | anisotropyLevel() const | 
| void | setAnisotropyLevel(QSGTexture::AnisotropyLevel level) | 
Class QQuickStyle:
| QStringList | availableStyles() | 
Class QCanBusFrame:
| bool | hasBitrateSwitch() const | 
| bool | hasErrorStateIndicator() const | 
| void | setBitrateSwitch(bool bitrateSwitch) | 
| void | setErrorStateIndicator(bool errorStateIndicator) | 
Class QCanBus:
| QList<QCanBusDeviceInfo> | availableDevices(const QString &plugin, QString *errorMessage) const | 
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) | 
Class QRenderCaptureReply:
| bool | saveImage(const QString &fileName) const | 
Class QSkyboxEntity:
| bool | isGammaCorrectEnabled() const | 
| void | setGammaCorrectEnabled(bool enabled) | 
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 Properties
| 
 | 
 | 
New Variables
New QML Types
New QML Properties
New QML Signals
| positioningComplete() | |
| positioningComplete() | |
| positioningComplete() | |
| positioningComplete() | |
| shortcutOverride() | |
| textEdited() |