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.
类 QDataStream :
| QDataStream & | operator<< (qfloat16 f ) |
| QDataStream & | operator>> (qfloat16 & f ) |
| virtual QByteArray | id () const |
类 QDir :
| bool | isEmpty (Filters filters = Filters( AllEntries | NoDotAndDotDot )) const |
类 QStorageInfo :
| QByteArray | subvolume () const |
类 QTemporaryDir :
| QString | filePath (const QString & fileName ) const |
类 QObject :
| int | startTimer (std::chrono::milliseconds time , Qt::TimerType timerType = Qt::CoarseTimer) |
类 QThreadPool :
| bool | tryTake (QRunnable * runnable ) |
类 QByteArray :
| QByteArray | toHex (char separator ) const |
类 QStringRef :
| const_iterator | constBegin () const |
| const_iterator | constEnd () const |
| bool | isRightToLeft () const |
类 QTimeZone :
| QTimeZone | fromCFTimeZone (CFTimeZoneRef timeZone ) |
| QTimeZone | fromNSTimeZone (const NSTimeZone * timeZone ) |
| CFTimeZoneRef | toCFTimeZone () const |
| NSTimeZone * | toNSTimeZone () const |
类 QVarLengthArray :
| void | append (T && t ) |
| void | push_back (T && t ) |
类 QIconEngine :
| QPixmap | scaledPixmap (const QSize & size , QIcon::Mode mode , QIcon::State state , qreal scale ) |
类 QImage :
| bool | reinterpretAsFormat (Format format ) |
类 TouchPoint :
| QSizeF | ellipseDiameters () const |
| void * | nativeHandle () const |
| void | setNativeHandle (void * handle ) |
类 QPlatformScreen :
| virtual int | currentMode () const |
| virtual QString | manufacturer () const |
| virtual QString | model () const |
| virtual QVector<Mode> | modes () const |
| virtual int | preferredMode () const |
| virtual QString | serialNumber () const |
类 QPlatformTheme :
| virtual QKeySequence | standardButtonShortcut (int button ) const |
类 QWindow :
| QWindow * | parent (AncestorMode mode ) const |
| void | setFlag (Qt::WindowType flag , bool on = true) |
类 QOpenGLTexture :
| void | setCompressedData (int mipLevel , int layer , int layerCount , CubeMapFace cubeFace , int dataSize , const void * data , const QOpenGLPixelTransferOptions * const options = Q_NULLPTR) |
| void | setData (int mipLevel , int layer , int layerCount , CubeMapFace cubeFace , PixelFormat sourceFormat , PixelType sourceType , const void * data , const QOpenGLPixelTransferOptions * const options = Q_NULLPTR) |
| 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 ) |
类 QTextDocument :
| QString | toRawText () const |
| bool | isTabletMode () |
| const QByteArray | isTabletModeIdentifier () |
| 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 |
类 QNetworkReply :
| void | redirectAllowed () |
| int | connectTimeout () const |
| bool | setConnectTimeout (int timeout ) |
类 QHostInfo :
| int | lookupHost (const QString & name , const QObject * receiver , PointerToMemberFunction function ) |
| int | lookupHost (const QString & name , Functor functor ) |
| int | lookupHost (const QString & name , const QObject * context , Functor functor ) |
类 QFileDialog :
| QString | selectedMimeTypeFilter () const |
类 QSizePolicy :
| QSizePolicy | transposed () const |
类 QWidget :
| void | setWindowFlag (Qt::WindowType flag , bool on = true) |
类 QSystemTrayIcon :
| void | showMessage (const QString & title , const QString & message , const QIcon & icon , int millisecondsTimeoutHint = 10000) |
类 QUndoCommand :
| bool | isObsolete () const |
| void | setObsolete (bool obsolete ) |
类 QSplitter :
| QWidget * | replaceWidget (int index , QWidget * widget ) |
类 QNearFieldTarget :
| bool | disconnect () |
| bool | keepConnection () const |
| int | maxCommandLength () const |
| bool | setKeepConnection (bool isPersistent ) |
类 QQmlEngine :
| QString | offlineStorageDatabaseFilePath (const QString & databaseName ) const |
类 QQmlError :
| QtMsgType | messageType () const |
| void | setMessageType (QtMsgType messageType ) |
类 QQuickWindow :
| QString | sceneGraphBackend () |
类 QSGTexture :
| QSGTexture::AnisotropyLevel | anisotropyLevel () const |
| void | setAnisotropyLevel (AnisotropyLevel level ) |
类 QGeoCircle :
| void | extendCircle (const QGeoCoordinate & coordinate ) |
类 QGeoRectangle :
| void | extendRectangle (const QGeoCoordinate & coordinate ) |
类 QGeoCodeReply :
| void | aborted () |
| double | maximumFieldOfView () const |
| double | minimumFieldOfView () const |
| bool | overzoomEnabled () const |
| void | setMaximumFieldOfView (double maximumFieldOfView ) |
| void | setMinimumFieldOfView (double minimumFieldOfView ) |
| void | setOverzoomEnabled (bool overzoomEnabled ) |
类 QGeoRouteReply :
| void | aborted () |
类 QPlaceReply :
| void | aborted () |
类 QGeoShape :
| QGeoRectangle | boundingGeoRectangle () const |
类 QQuickStyle :
| QStringList | availableStyles () |
类 QCanBus :
| QList<QCanBusDeviceInfo> | availableDevices (const QString & plugin , QString * errorMessage = nullptr) const |
类 QCanBusFrame :
| bool | hasBitrateSwitch () const |
| bool | hasErrorStateIndicator () const |
| void | setBitrateSwitch (bool bitrateSwitch ) |
| void | setErrorStateIndicator (bool errorStateIndicator ) |
| void | search (const QString & searchInput ) |
| QString | searchInput () const |
| int | searchResultCount () const |
| QVector<QHelpSearchResult> | searchResults (int start , int end ) const |
| QString | searchInput () const |
| void | setSearchInput (const QString & searchInput ) |
| DownloadInterruptReason | interruptReason () const |
| QString | interruptReasonString () const |
类 QWebEnginePage :
| void | load (const QWebEngineHttpRequest & request ) |
| void | pdfPrintingFinished (const QString & filePath , bool success ) |
类 QWebEngineView :
| void | load (const QWebEngineHttpRequest & request ) |
类 QWebSocketServer :
| void | handleConnection (QTcpSocket * socket ) const |
类 QSkyboxEntity :
| bool | isGammaCorrectEnabled () const |
| void | setGammaCorrectEnabled (bool enabled ) |
| bool | saveImage (const QString & fileName ) const |
| QTestData & | addRow (const char * format , ... ) |
| QQmlInfo | qmlDebug (const QObject * object ) |
| QQmlInfo | qmlWarning (const QObject * object ) |
| bool | operator!= (QHostAddress::SpecialAddress lhs , const QHostAddress & rhs ) |
| quint16 | qChecksum (const char * data , uint len , Qt::ChecksumType standard ) |
| void | qmlRegisterModule (const char * uri , int versionMajor , int versionMinor ) |
| enum | RedirectPolicy { ManualRedirectPolicy, NoLessSafeRedirectPolicy, SameOriginRedirectPolicy, UserVerifiedRedirectPolicy } |
| enum | AnisotropyLevel { AnisotropyNone, Anisotropy2x, Anisotropy4x, Anisotropy8x, Anisotropy16x } |
| enum | DownloadInterruptReason { NoReason, FileFailed, FileAccessDenied, FileNoSpace, ..., UserCanceled } |
| enum | ChecksumType { ChecksumIso3309, ChecksumItuV41 } |
| typedef | IsTabletModeType |
|
|
| const QOperatingSystemVersion | AndroidJellyBean |
| const QOperatingSystemVersion | AndroidJellyBean_MR1 |
| const QOperatingSystemVersion | AndroidJellyBean_MR2 |
| const QOperatingSystemVersion | AndroidKitKat |
| const QOperatingSystemVersion | AndroidLollipop |
| const QOperatingSystemVersion | AndroidLollipop_MR1 |
| const QOperatingSystemVersion | AndroidMarshmallow |
| const QOperatingSystemVersion | AndroidNougat |
| const QOperatingSystemVersion | AndroidNougat_MR1 |
| const QOperatingSystemVersion | MacOSSierra |
| const QOperatingSystemVersion | OSXElCapitan |
| const QOperatingSystemVersion | OSXMavericks |
| const QOperatingSystemVersion | OSXYosemite |
| const QOperatingSystemVersion | Windows10 |
| const QOperatingSystemVersion | Windows7 |
| const QOperatingSystemVersion | Windows8 |
| const QOperatingSystemVersion | Windows8_1 |
| positioningComplete () | |
| positioningComplete () | |
| positioningComplete () | |
| shortcutOverride (KeyEvent event ) | |
| positioningComplete () | |
| textEdited () |
| forceLayout () | |
| forceLayout () | |
| forceLayout () | |
| void | addMapItemGroup (MapItemGroup itemGroup ) |
| void | addMapParameter (MapParameter 参数 ) |
| void | clearMapParameters () |
| void | removeMapItemGroup (MapItemGroup itemGroup ) |
| void | removeMapParameter (MapParameter 参数 ) |
| geopath | path () const |
| geopath | shapeToPath (geoshape shape ) const |
| bool | saveImage ( fileName ) |
| forceLayout () | |
| 对象 | createTemporaryObject (Component component , object parent , object properties ) |
| 对象 | createTemporaryQmlObject (string qml , object parent , string filePath ) |
| TouchEventSequence | touchEvent (object item ) |
| forceLayout () |