This page contains a comprehensive list of all new classes and functions introduced in Qt 5.2. Links to new APIs in previous Qt 5 releases are found at the bottom of this page.
| namespace | QBluetooth | 
| namespace | QtMac | 
类 QBitArray :
| QBitArray & | operator= (QBitArray && other ) | 
类 QByteArray :
| QByteArray | fromBase64 (const QByteArray & base64 , QByteArray::Base64Options options ) | 
| QByteArray & | operator= (QByteArray && other ) | 
| QByteArray | toBase64 (QByteArray::Base64Options options ) const | 
| QCommandLineOption & | operator= (QCommandLineOption && other ) | 
类 QContiguousCache :
| QContiguousCache<T> & | operator= (QContiguousCache<T> && other ) | 
类 QDateTime :
| QDateTime | fromMSecsSinceEpoch (qint64 msecs , Qt::TimeSpec spec , int offsetSeconds ) | 
| QDateTime | fromMSecsSinceEpoch (qint64 msecs , const QTimeZone & timeZone ) | 
| bool | isDaylightTime () const | 
| int | offsetFromUtc () const | 
| void | setOffsetFromUtc (int offsetSeconds ) | 
| void | setTimeZone (const QTimeZone & toZone ) | 
| QTimeZone | timeZone () const | 
| QString | timeZoneAbbreviation () const | 
| QDateTime | toOffsetFromUtc (int offsetSeconds ) const | 
| QDateTime | toTimeZone (const QTimeZone & timeZone ) const | 
类 QDir :
| QDir & | operator= (QDir && other ) | 
类 QEasingCurve :
| QEasingCurve & | operator= (QEasingCurve && other ) | 
类 QExplicitlySharedDataPointer :
| QExplicitlySharedDataPointer<T> & | operator= (QExplicitlySharedDataPointer<T> && other ) | 
类 QFileInfo :
| bool | exists (const QString & file ) | 
| QFileInfo & | operator= (QFileInfo && other ) | 
类 QHash :
| QHash<K, V> & | operator= (QHash<K, V> && other ) | 
类 QJsonValue :
| int | toInt (int defaultValue ) const | 
类 QLinkedList :
| QLinkedList<T> & | operator= (QLinkedList<T> && other ) | 
类 QList :
| QList<T> & | operator= (QList<T> && other ) | 
类 QMap :
| T & | first () | 
| const T & | first () const | 
| const Key & | firstKey () const | 
| T & | last () | 
| const T & | last () const | 
| const Key & | lastKey () const | 
| QMap<Key, T> & | operator= (QMap<Key, T> && other ) | 
类 QMetaType :
| bool | compare (const void * lhs , const void * rhs , int typeId , int * result ) | 
| bool | convert (const void * from , int fromTypeId , void * to , int toTypeId ) | 
| bool | debugStream (QDebug & dbg , const void * rhs , int typeId ) | 
| bool | hasRegisteredComparators () | 
| bool | hasRegisteredComparators (int typeId ) | 
| bool | hasRegisteredConverterFunction (int fromTypeId , int toTypeId ) | 
| bool | hasRegisteredConverterFunction () | 
| bool | hasRegisteredDebugStreamOperator () | 
| bool | hasRegisteredDebugStreamOperator (int typeId ) | 
| bool | registerComparators () | 
| bool | registerConverter () | 
| bool | registerConverter (MemberFunction function ) | 
| bool | registerConverter (MemberFunctionOk function ) | 
| bool | registerConverter (UnaryFunction function ) | 
类 QMimeType :
| QMimeType & | operator= (QMimeType && other ) | 
类 QObject :
| QMetaObject::Connection | connect (const QObject * sender , PointerToMemberFunction signal , const QObject * context , Functor functor , Qt::ConnectionType type ) | 
类 QPair :
| QPair<T1, T2> & | operator= (const QPair<TT1, TT2> & p ) | 
| QPair<T1, T2> & | operator= (QPair<TT1, TT2> && p ) | 
| QPersistentModelIndex & | operator= (QPersistentModelIndex && other ) | 
类 QProcess :
| QProcess::InputChannelMode | inputChannelMode () const | 
| QString | nullDevice () | 
| void | setInputChannelMode (QProcess::InputChannelMode mode ) | 
类 QRegExp :
| QRegExp & | operator= (QRegExp && other ) | 
| QSharedDataPointer<T> & | operator= (QSharedDataPointer<T> && other ) | 
类 QString :
| QString | fromCFString (CFStringRef string ) | 
| QString | fromNSString (const NSString * string ) | 
| QString & | operator= (QString && other ) | 
| CFStringRef | toCFString () const | 
| NSString * | toNSString () const | 
类 QStringRef :
| QStringRef | left (int n ) const | 
| QStringRef | mid (int position , int n ) const | 
| QStringRef | right (int n ) const | 
类 QThread :
| bool | isInterruptionRequested () const | 
| void | requestInterruption () | 
类 QThreadPool :
| void | clear () | 
类 QUrl :
| QUrl | adjusted (QUrl::FormattingOptions options ) const | 
| QString | fileName (QUrl::ComponentFormattingOptions options ) const | 
| QUrl | fromCFURL (CFURLRef url ) | 
| QUrl | fromNSURL (const NSURL * url ) | 
| bool | 匹配 (const QUrl & url , QUrl::FormattingOptions options ) const | 
| QUrl & | operator= (QUrl && other ) | 
| CFURLRef | toCFURL () const | 
| NSURL * | toNSURL () const | 
类 QUrlQuery :
| QUrlQuery & | operator= (QUrlQuery && other ) | 
类 QVariant :
| QVariant & | operator= (QVariant && other ) | 
类 QVector :
| int | length () const | 
| QVector<T> & | operator= (QVector<T> && other ) | 
| void | removeAt (int i ) | 
| T | takeAt (int i ) | 
类 QAbstractTextDocumentLayout :
| void | unregisterHandler (int objectType , QObject * component ) | 
类 QBrush :
| QBrush & | operator= (QBrush && other ) | 
类 QColor :
| QString | name (QColor::NameFormat format ) const | 
类 QCursor :
| QCursor & | operator= (QCursor && other ) | 
类 QFont :
| QFont & | operator= (QFont && other ) | 
类 QFontDatabase :
| QFont | systemFont (QFontDatabase::SystemFont type ) | 
类 QFontMetrics :
| QFontMetrics & | operator= (QFontMetrics && other ) | 
类 QGuiApplication :
| Qt::ApplicationState | applicationState () | 
| void | applicationStateChanged (Qt::ApplicationState state ) | 
| void | sync () | 
类 QIcon :
| QIcon & | operator= (QIcon && other ) | 
类 QImage :
| QImage & | operator= (QImage && other ) | 
类 QKeySequence :
| QKeySequence & | operator= (QKeySequence && other ) | 
| Qt::NativeGestureType | gestureType () const | 
| const QPoint | globalPos () const | 
| const QPointF & | localPos () const | 
| const QPoint | pos () const | 
| const QPointF & | screenPos () const | 
| qreal | value () const | 
| const QPointF & | windowPos () const | 
类 QPainterPath :
| QPainterPath & | operator= (QPainterPath && other ) | 
类 QPalette :
| QPalette & | operator= (QPalette && other ) | 
类 QPen :
| QPen & | operator= (QPen && other ) | 
类 QPicture :
| QPicture & | operator= (QPicture && other ) | 
类 QPixmap :
| QPixmap & | operator= (QPixmap && other ) | 
| void | registerAliasToFontFamily (const QString & familyName , const QString & alias ) | 
| virtual QPlatformSessionManager * | createPlatformSessionManager (const QString & id , const QString & key ) const | 
| virtual void | sync () | 
类 QPlatformTheme :
| virtual QList<QKeySequence> | keyBindings (QKeySequence::StandardKey key ) const | 
类 QRegion :
| QRegion & | operator= (QRegion && other ) | 
类 QTouchDevice :
| int | maximumTouchPoints () const | 
类 QVector2D :
| float & | operator[] (int i ) | 
| float | operator[] (int i ) const | 
类 QVector4D :
| float & | operator[] (int i ) | 
| float | operator[] (int i ) const | 
类 QVector3D :
| float & | operator[] (int i ) | 
| float | operator[] (int i ) const | 
类 QWheelEvent :
| Qt::ScrollPhase | phase () const | 
| void | connectToHost (const QString & hostName , quint16 port ) | 
| void | connectToHostEncrypted (const QString & hostName , quint16 port , const QSslConfiguration & sslConfiguration ) | 
| QStringList | supportedSchemes () const | 
| QStringList | supportedSchemesImplementation () const | 
| QNetworkConfiguration::BearerType | bearerTypeFamily () const | 
| QByteArray | sessionTicket () const | 
| int | sessionTicketLifeTimeHint () const | 
| void | setSessionTicket (const QByteArray & sessionTicket ) | 
类 QQuickWindow :
| void | resetOpenGLState () | 
类 QPressureReading :
| void | setTemperature (qreal temperature ) | 
类 QSerialPort :
| QSerialPort::Handle | handle () const | 
| virtual QSize | viewportSizeHint () const override | 
| virtual QSize | viewportSizeHint () const | 
类 QButtonGroup :
| void | buttonToggled (QAbstractButton * button , bool checked ) | 
类 QFileDialog :
| void | currentUrlChanged (const QUrl & url ) | 
| QUrl | directoryUrl () const | 
| void | directoryUrlEntered (const QUrl & directory ) | 
| QUrl | getExistingDirectoryUrl (QWidget * parent , const QString & caption , const QUrl & dir , QFileDialog::Options options , const QStringList & supportedSchemes ) | 
| QUrl | getOpenFileUrl (QWidget * parent , const QString & caption , const QUrl & dir , const QString & filter , QString * selectedFilter , QFileDialog::Options options , const QStringList & supportedSchemes ) | 
| QList<QUrl> | getOpenFileUrls (QWidget * parent , const QString & caption , const QUrl & dir , const QString & filter , QString * selectedFilter , QFileDialog::Options options , const QStringList & supportedSchemes ) | 
| QUrl | getSaveFileUrl (QWidget * parent , const QString & caption , const QUrl & dir , const QString & filter , QString * selectedFilter , QFileDialog::Options options , const QStringList & supportedSchemes ) | 
| QStringList | mimeTypeFilters () const | 
| void | selectMimeTypeFilter (const QString & filter ) | 
| void | selectUrl (const QUrl & url ) | 
| QList<QUrl> | selectedUrls () const | 
| void | setDirectoryUrl (const QUrl & directory ) | 
| void | setMimeTypeFilters (const QStringList & filters ) | 
| void | urlSelected (const QUrl & url ) | 
| void | urlsSelected (const QList<QUrl> & urls ) | 
| QFileIconProvider::Options | options () const | 
| void | setOptions (QFileIconProvider::Options options ) | 
类 QHeaderView :
| int | resizeContentsPrecision () const | 
| void | setResizeContentsPrecision (int precision ) | 
类 QInputDialog :
| QString | getMultiLineText (QWidget * parent , const QString & title , const QString & label , const QString & text , bool * ok , Qt::WindowFlags flags , Qt::InputMethodHints inputMethodHints ) | 
类 QLayout :
| QLayoutItem * | replaceWidget (QWidget * from , QWidget * to , Qt::FindChildOptions options ) | 
类 QLineEdit :
| void | addAction (QAction * action , QLineEdit::ActionPosition position ) | 
| QAction * | addAction (const QIcon & icon , QLineEdit::ActionPosition position ) | 
类 QListView :
| virtual QSize | viewportSizeHint () const override | 
类 QMainWindow :
| QWidget * | takeCentralWidget () | 
类 QMenu :
| void | setAsDockMenu () | 
| NSMenu * | toNSMenu () | 
类 QMenuBar :
| NSMenu * | toNSMenu () | 
类 QMessageBox :
| QCheckBox * | checkBox () const | 
| void | setCheckBox (QCheckBox * cb ) | 
类 QSizePolicy :
| bool | retainSizeWhenHidden () const | 
| void | setRetainSizeWhenHidden (bool retainSize ) | 
类 QSplashScreen :
| QString | message () const | 
类 QTabBar :
| void | tabBarClicked (int index ) | 
| void | tabBarDoubleClicked (int index ) | 
类 QTabWidget :
| void | tabBarClicked (int index ) | 
| void | tabBarDoubleClicked (int index ) | 
类 QToolTip :
| void | showText (const QPoint & pos , const QString & text , QWidget * w , const QRect & rect , int msecDisplayTime ) | 
类 QTreeView :
| void | setTreePosition (int index ) | 
| int | treePosition () const | 
类 QWidget :
| void | windowIconChanged (const QIcon & icon ) | 
| void | windowTitleChanged (const QString & title ) | 
类 QX11Info :
| unsigned long | getTimestamp () | 
| bool | isPlatformX11 () | 
| void | setWindowFlip3DPolicy (QWidget * window , QtWin::WindowFlip3DPolicy policy ) | 
| quint64 | qFloatDistance (double a , double b ) | 
| quint32 | qFloatDistance (float a , float b ) | 
| quint64 | qFloatDistance (double a , double b ) | 
| quint32 | qFloatDistance (float a , float b ) | 
| uint | qPopulationCount (quint64 v ) | 
| uint | qPopulationCount (quint16 v ) | 
| uint | qPopulationCount (quint32 v ) | 
| uint | qPopulationCount (quint8 v ) | 
| uint | qPopulationCount (quint64 v ) | 
| uint | qPopulationCount (quint16 v ) | 
| uint | qPopulationCount (quint32 v ) | 
| uint | qPopulationCount (quint8 v ) | 
| Q_DECLARE_LOGGING_CATEGORY ( name ) | |
| Q_DECLARE_LOGGING_CATEGORY ( name ) | |
| Q_FORWARD_DECLARE_CF_TYPE ( type ) | |
| Q_FORWARD_DECLARE_CF_TYPE ( type ) | |
| Q_FORWARD_DECLARE_MUTABLE_CF_TYPE ( type ) | |
| Q_FORWARD_DECLARE_MUTABLE_CF_TYPE ( type ) | |
| Q_FORWARD_DECLARE_OBJC_CLASS ( classname ) | |
| Q_FORWARD_DECLARE_OBJC_CLASS ( classname ) | |
| Q_LOGGING_CATEGORY ( name , string ) | |
| Q_LOGGING_CATEGORY ( name , string ) | |
| qCCritical ( category ) | |
| qCCritical ( category ) | |
| qCDebug ( category ) | |
| qCDebug ( category ) | |
| qCWarning ( category ) | |
| qCWarning ( category ) | 
| enum | SizeAdjustPolicy { AdjustIgnored, AdjustToContentsOnFirstShow, AdjustToContents } | 
| enum | Base64Option { Base64Encoding, Base64UrlEncoding, KeepTrailingEquals, OmitTrailingEquals, IgnoreBase64DecodingErrors, AbortOnBase64DecodingErrors } | 
| enum | Option { DontUseCustomDirectoryIcons } | 
| enum | SystemFont { GeneralFont, FixedFont, TitleFont, SmallestReadableFont } | 
| enum | ActionPosition { LeadingPosition, TrailingPosition } | 
| enum | InputChannelMode { ManagedInputChannel, ForwardedInputChannel } | 
| enum | NativeGestureType { BeginNativeGesture, EndNativeGesture, PanNativeGesture, ZoomNativeGesture, SmartZoomNativeGesture, …, SwipeNativeGesture } | 
| enum | ScrollPhase { NoScrollPhase, ScrollBegin, ScrollUpdate, ScrollEnd, ScrollMomentum } | 
| enum | HBitmapFormat { HBitmapNoAlpha, HBitmapPremultipliedAlpha, HBitmapAlpha } | 
| enum | WindowFlip3DPolicy { FlipDefault, FlipExcludeBelow, FlipExcludeAbove } | 
								
  | 
							
								
  | 
						
| autoOrientation | |
| colorData | |
| dragType | |
| formats | |
| hasColor | |
| hasHtml | |
| hasText | |
| hasUrls | |
| hoveredLink | |
| hoveredLink | |
| html | |
| mimeData | |
| pixelDensity | |
| proposedAction | |
| showFiles | |
| showHidden | |
| text | |
| urls | 
| editingFinished () | |
| linkHovered () | |
| linkHovered () | 
| acceptProposedAction () | |
| append () | |
| getDataAsString () | |
| 匹配 () |