This page contains a comprehensive list of all new classes and functions introduced in Qt 5.10. Links to new APIs in previous Qt 5 releases are found at the bottom of this page.
| virtual bool | cloneTo (QAbstractFileEngine * target ) |
| virtual bool | setFileTime (const QDateTime & newDate , QAbstractFileEngine::FileTime time ) |
类 QByteArray :
| char | back () const |
| QByteRef | back () |
| QByteArray | chopped (int len ) const |
| char | front () const |
| QByteRef | front () |
| void | shrink_to_fit () |
类 FromBase64Result :
| uint | qHash (QStringView key , uint seed ) |
类 QDebug :
| QDebug & | operator<< (QStringView s ) |
类 QFileDevice :
| QDateTime | fileTime (QFileDevice::FileTime time ) const |
| bool | setFileTime (const QDateTime & newDate , QFileDevice::FileTime fileTime ) |
类 QFileInfo :
| QDateTime | birthTime () const |
| QDateTime | fileTime (QFile::FileTime time ) const |
| QDateTime | metadataChangeTime () const |
类 QHash :
| QHash::const_key_value_iterator | constKeyValueBegin () const |
| QHash::const_key_value_iterator | constKeyValueEnd () const |
| QHash::key_value_iterator | keyValueBegin () |
| QHash::const_key_value_iterator | keyValueBegin () const |
| QHash::key_value_iterator | keyValueEnd () |
| QHash::const_key_value_iterator | keyValueEnd () const |
类 QIODevice :
| qint64 | skip (qint64 maxSize ) |
类 QJsonArray :
| QJsonArray & | operator= (QJsonArray && other ) |
| void | swap (QJsonArray & other ) |
类 QJsonDocument :
| QJsonDocument & | operator= (QJsonDocument && other ) |
| const QJsonValue | operator[] (const QString & key ) const |
| const QJsonValue | operator[] (QLatin1String key ) const |
| const QJsonValue | operator[] (int i ) const |
| void | swap (QJsonDocument & other ) |
类 QJsonObject :
| QJsonObject & | operator= (QJsonObject && other ) |
| void | swap (QJsonObject & other ) |
类 QJsonValue :
| QJsonValue & | operator= (QJsonValue && other ) |
| const QJsonValue | operator[] (const QString & key ) const |
| const QJsonValue | operator[] (QLatin1String key ) const |
| const QJsonValue | operator[] (int i ) const |
| void | swap (QJsonValue & other ) |
类 QLatin1String :
| QLatin1Char | back () const |
| QLatin1String::const_iterator | begin () const |
| QLatin1String::const_iterator | cbegin () const |
| QLatin1String::const_iterator | cend () const |
| void | chop (int length ) |
| QLatin1String | chopped (int length ) const |
| QLatin1String::const_reverse_iterator | crbegin () const |
| QLatin1String::const_reverse_iterator | crend () const |
| QLatin1String::const_iterator | end () const |
| QLatin1Char | front () const |
| bool | isEmpty () const |
| bool | isNull () const |
| QLatin1String::const_reverse_iterator | rbegin () const |
| QLatin1String::const_reverse_iterator | rend () const |
| QLatin1String | trimmed () const |
| void | truncate (int length ) |
类 QLocale :
| QString | formattedDataSize (qint64 bytes , int precision , QLocale::DataSizeFormats format ) const |
| double | toDouble (QStringView s , bool * ok ) const |
| float | toFloat (QStringView s , bool * ok ) const |
| int | toInt (QStringView s , bool * ok ) const |
| qlonglong | toLongLong (QStringView s , bool * ok ) const |
| short | toShort (QStringView s , bool * ok ) const |
| QString | toString (const QDate & date , QStringView format ) const |
| QString | toString (const QDateTime & dateTime , QStringView format ) const |
| uint | toUInt (QStringView s , bool * ok ) const |
| qulonglong | toULongLong (QStringView s , bool * ok ) const |
| ushort | toUShort (QStringView s , bool * ok ) const |
类 QMap :
| QMap::const_key_value_iterator | constKeyValueBegin () const |
| QMap::const_key_value_iterator | constKeyValueEnd () const |
| QMap::key_value_iterator | keyValueBegin () |
| QMap::const_key_value_iterator | keyValueBegin () const |
| QMap::key_value_iterator | keyValueEnd () |
| QMap::const_key_value_iterator | keyValueEnd () const |
类 QMetaObject :
| bool | invokeMethod (QObject * context , Functor function , Qt::ConnectionType type , FunctorReturnType * ret ) |
| bool | invokeMethod (QObject * context , Functor function , FunctorReturnType * ret ) |
| QOperatingSystemVersion::OSType | currentType () |
类 QProcess :
| bool | startDetached (qint64 * pid ) |
| QString | captured (QStringView name ) const |
| int | capturedEnd (QStringView name ) const |
| int | capturedLength (QStringView name ) const |
| QStringRef | capturedRef (QStringView name ) const |
| int | capturedStart (QStringView name ) const |
| QStringView | capturedView (int nth ) const |
| QStringView | capturedView (QStringView name ) const |
类 QSettings :
| bool | isAtomicSyncRequired () const |
| void | setAtomicSyncRequired (bool enable ) |
类 QString :
| QString | arg (QStringView a , int fieldWidth , QChar fillChar ) const |
| QString | arg (QLatin1String a , int fieldWidth , QChar fillChar ) const |
| QChar | back () const |
| QCharRef | back () |
| QString | chopped (int len ) const |
| bool | endsWith (QStringView str , Qt::CaseSensitivity cs ) const |
| QChar | front () const |
| QCharRef | front () |
| void | shrink_to_fit () |
| bool | startsWith (QStringView str , Qt::CaseSensitivity cs ) const |
类 QStringList :
| bool | contains (QLatin1String str , Qt::CaseSensitivity cs ) const |
类 QStringRef :
| QChar | back () const |
| QStringRef | chopped (int len ) const |
| bool | endsWith (QStringView str , Qt::CaseSensitivity cs ) const |
| QChar | front () const |
| bool | startsWith (QStringView str , Qt::CaseSensitivity cs ) const |
类 QStringView :
| uint | qHash (QStringView key , uint seed ) |
类 QTextCodec :
| bool | canEncode (QStringView s ) const |
| QByteArray | fromUnicode (QStringView str ) const |
类 QTextEncoder :
| QByteArray | fromUnicode (QStringView str ) |
类 QThread :
| QThread * | create (Function && f , Args &&... args ) |
| QThread * | create (Function && f ) |
类 QUuid :
| QUuid | fromString (QStringView text ) |
| QUuid | fromString (QLatin1String text ) |
类 QVarLengthArray :
| void | shrink_to_fit () |
类 QVector :
| void | shrink_to_fit () |
类 QVersionNumber :
| QVersionNumber | fromString (QLatin1String string , int * suffixIndex ) |
| QVersionNumber | fromString (QStringView string , int * suffixIndex ) |
类 QColor :
| bool | isValidColor (QStringView name ) |
| void | setNamedColor (QStringView name ) |
类 QCursor :
| bool | operator!= (const QCursor & lhs , const QCursor & rhs ) |
| bool | operator== (const QCursor & lhs , const QCursor & rhs ) |
类 QGuiApplication :
| QScreen * | screenAt (const QPoint & point ) |
类 QImage :
| qsizetype | sizeInBytes () const |
| const QTouchDevice * | device () const |
类 QPdfWriter :
| QPagedPaintDevice::PdfVersion | pdfVersion () const |
| void | setPdfVersion (QPagedPaintDevice::PdfVersion version ) |
类 QPlatformCursor :
| virtual void | clearOverrideCursor () |
| virtual void | setOverrideCursor ( const QCursor & ) |
| virtual QPlatformVulkanInstance * | createPlatformVulkanInstance (QVulkanInstance * 实例 ) const |
| bool | operator!= (const QCursor & lhs , const QCursor & rhs ) |
| bool | operator== (const QCursor & lhs , const QCursor & rhs ) |
类 QPolygon :
| bool | intersects (const QPolygon & p ) const |
类 QPolygonF :
| bool | intersects (const QPolygonF & p ) const |
| bool | operator!= (const QCursor & lhs , const QCursor & rhs ) |
类 QRhiViewport :
| bool | operator== (const QCursor & lhs , const QCursor & rhs ) |
类 UniformBlock :
| bool | operator== (const QCursor & lhs , const QCursor & rhs ) |
类 QSurfaceFormat :
| QSurfaceFormat::ColorSpace | colorSpace () const |
| bool | operator!= (const QCursor & lhs , const QCursor & rhs ) |
| bool | operator== (const QCursor & lhs , const QCursor & rhs ) |
| void | setColorSpace (QSurfaceFormat::ColorSpace colorSpace ) |
类 FormatRange :
| bool | operator!= (const QCursor & lhs , const QCursor & rhs ) |
| bool | operator== (const QCursor & lhs , const QCursor & rhs ) |
类 QTextOption :
| void | setTabStopDistance (qreal tabStopDistance ) |
| qreal | tabStopDistance () const |
类 QVector2D :
| bool | operator!= (const QCursor & lhs , const QCursor & rhs ) |
| bool | operator== (const QCursor & lhs , const QCursor & rhs ) |
类 QWindow :
| void | setWindowStates (Qt::WindowStates state ) |
| Qt::WindowStates | windowStates () const |
类 QHostInfo :
| QHostInfo & | operator= (QHostInfo && other ) |
| void | swap (QHostInfo & other ) |
类 QLocalServer :
| qintptr | socketDescriptor () const |
| void | enableStrictTransportSecurityStore (bool enabled , const QString & storeDir ) |
| bool | isStrictTransportSecurityStoreEnabled () const |
类 QAbstractOAuth2 :
| virtual QNetworkReply * | post (const QUrl & url , const QByteArray & data ) |
| virtual QNetworkReply * | post (const QUrl & url , QHttpMultiPart * multiPart ) |
| virtual QNetworkReply * | put (const QUrl & url , const QByteArray & data ) |
| virtual QNetworkReply * | put (const QUrl & url , QHttpMultiPart * multiPart ) |
类 QGeoPath :
| int | size () const |
类 QGeoPolygon :
| int | size () const |
类 QPrinter :
| QPagedPaintDevice::PdfVersion | pdfVersion () const |
| void | setPdfVersion (QPagedPaintDevice::PdfVersion version ) |
类 QQmlEngine :
| void | retranslate () |
类 QQuickItem :
| bool | acceptTouchEvents () const |
| void | setAcceptTouchEvents (bool enabled ) |
| void | setSize (const QSizeF & size ) |
| QSizeF | size () const |
类 QQuickWindow :
| void | setTextRenderType (QQuickWindow::TextRenderType renderType ) |
| QQuickWindow::TextRenderType | textRenderType () |
类 QCanBusFrame :
| bool | hasLocalEcho () const |
| void | setLocalEcho (bool echo ) |
类 QSqlError :
| QSqlError & | operator= (QSqlError && other ) |
| void | swap (QSqlError & other ) |
类 QSqlQueryModel :
| virtual QHash<int, QByteArray> | roleNames () const override |
| bool | isPersistentEditorOpen (const QModelIndex & index ) const |
类 QLineEdit :
| int | selectionEnd () const |
| int | selectionLength () const |
类 QListWidget :
| bool | isPersistentEditorOpen (QListWidgetItem * item ) const |
类 QOpenGLWidget :
| void | setTextureFormat (GLenum texFormat ) |
| GLenum | textureFormat () const |
类 QTableWidget :
| bool | isPersistentEditorOpen (QTableWidgetItem * item ) const |
类 QTreeWidget :
| bool | isPersistentEditorOpen (QTreeWidgetItem * item , int column ) const |
类 QX11Info :
| qint32 | generatePeekerId () |
| bool | peekEventQueue (QX11Info::PeekerCallback peeker , void * peekerData , QX11Info::PeekOptions option , qint32 peekerId ) |
| bool | removePeekerId (qint32 peekerId ) |
| bool | bindService (const QAndroidIntent & serviceIntent , const QAndroidServiceConnection & serviceConnection , QtAndroid::BindFlags flags ) |
| QtAndroid::PermissionResult | checkPermission (const QString & permission ) |
| void | hideSplashScreen (int duration ) |
| void | keySequence (QWidget * widget , const QKeySequence & keySequence ) |
| void | keySequence (QWindow * window , const QKeySequence & keySequence ) |
| bool | qWaitFor (Functor predicate , int timeout ) |
| void | requestPermissions (const QStringList & permissions , const QtAndroid::PermissionResultCallback & callbackFunc ) |
| QtAndroid::PermissionResultMap | requestPermissionsSync (const QStringList & permissions , int timeoutMs ) |
| bool | shouldShowRequestPermissionRationale (const QString & permission ) |
| bool | operator!= (const QCursor & lhs , const QCursor & rhs ) |
| bool | operator== (const QCursor & lhs , const QCursor & rhs ) |
| uint | qHash (QStringView key , uint seed ) |
| enum | FileTime { FileAccessTime, FileBirthTime, FileMetadataChangeTime, FileModificationTime } |
| enum | DataSizeFormat { DataSizeBase1000, DataSizeSIQuantifiers, DataSizeIecFormat, DataSizeTraditionalFormat, DataSizeSIFormat } |
| enum | Capability { OverrideCursor } |
| enum | TextRenderType { QtTextRendering, NativeTextRendering } |
| enum | Flag { NoDebugOutputRedirect } |
| enum | PeekOption { PeekDefault, PeekFromCachedIndex } |
| enum class | BindFlag { None, AutoCreate, DebugUnbind, NotForeground, AboveClient, …, ExternalService } |
| enum class | PermissionResult { Granted, Denied } |
| typedef | qint16_be |
| typedef | qint16_le |
| typedef | qint32_be |
| typedef | qint32_le |
| typedef | qint64_be |
| typedef | qint64_le |
| typedef | quint16_be |
| typedef | quint16_le |
| typedef | quint32_be |
| typedef | quint32_le |
| typedef | quint64_be |
| typedef | quint64_le |
| (alias) | qsizetype |
| typedef | const_key_value_iterator |
| typedef | key_value_iterator |
| (alias) | const_iterator |
| (alias) | const_reverse_iterator |
| (alias) | difference_type |
| (alias) | iterator |
| (alias) | reference |
| (alias) | reverse_iterator |
| (alias) | size_type |
| (alias) | value_type |
| typedef | const_key_value_iterator |
| typedef | key_value_iterator |
| typedef | PeekerCallback |
| typedef | qint16_be |
| typedef | qint16_le |
| typedef | qint32_be |
| typedef | qint32_le |
| typedef | qint64_be |
| typedef | qint64_le |
| (alias) | qsizetype |
| typedef | quint16_be |
| typedef | quint16_le |
| typedef | quint32_be |
| typedef | quint32_le |
| typedef | quint64_be |
| typedef | quint64_le |
|
|
| addMapItemView () | |
| alignCoordinateToPoint () | |
| keySequence () | |
| polygon () | |
| polygon () | |
| removeMapItemView () | |
| setBearing () | |
| setPath () | |
| shapeToPolygon () |