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 |
类 QDir :
| operator= (QDir && other ) |
类 QFileInfo :
| exists (const QString & file ) | |
| operator= (QFileInfo && other ) |
类 QProcess :
| inputChannelMode () const | |
| nullDevice () | |
| setInputChannelMode (QProcess::InputChannelMode mode ) |
类 QBitArray :
| operator= (QBitArray && other ) |
类 QByteArray :
| fromBase64 (const QByteArray & base64 , QByteArray::Base64Options options ) | |
| operator= (QByteArray && other ) | |
| toBase64 (QByteArray::Base64Options options ) const |
| operator= (QCommandLineOption && other ) |
类 QContiguousCache :
| operator= (QContiguousCache<T> && other ) |
类 QDateTime :
| fromMSecsSinceEpoch (qint64 msecs , Qt::TimeSpec spec , int offsetSeconds ) | |
| fromMSecsSinceEpoch (qint64 msecs , const QTimeZone & timeZone ) | |
| isDaylightTime () const | |
| offsetFromUtc () const | |
| setOffsetFromUtc (int offsetSeconds ) | |
| setTimeZone (const QTimeZone & toZone ) | |
| timeZone () const | |
| timeZoneAbbreviation () const | |
| toOffsetFromUtc (int offsetSeconds ) const | |
| toTimeZone (const QTimeZone & timeZone ) const |
类 QEasingCurve :
| operator= (QEasingCurve && other ) |
类 QExplicitlySharedDataPointer :
| operator= (QExplicitlySharedDataPointer<T> && other ) |
类 QHash :
| operator= (QHash<K, V> && other ) |
类 QJsonValue :
| toInt (int defaultValue ) const |
类 QLinkedList :
| operator= (QLinkedList<T> && other ) |
类 QList :
| operator= (QList<T> && other ) |
类 QMap :
| first () | |
| first () const | |
| firstKey () const | |
| last () | |
| last () const | |
| lastKey () const | |
| operator= (QMap<Key, T> && other ) |
类 QMetaType :
| compare (const void * lhs , const void * rhs , int typeId , int * result ) | |
| convert (const void * from , int fromTypeId , void * to , int toTypeId ) | |
| debugStream (QDebug & dbg , const void * rhs , int typeId ) | |
| hasRegisteredComparators () | |
| hasRegisteredComparators (int typeId ) | |
| hasRegisteredConverterFunction () | |
| hasRegisteredConverterFunction (int fromTypeId , int toTypeId ) | |
| hasRegisteredDebugStreamOperator () | |
| hasRegisteredDebugStreamOperator (int typeId ) | |
| registerComparators () | |
| registerConverter () | |
| registerConverter (MemberFunction function ) | |
| registerConverter (MemberFunctionOk function ) | |
| registerConverter (UnaryFunction function ) |
类 QMimeType :
| operator= (QMimeType && other ) |
类 QObject :
| connect (const QObject * sender , PointerToMemberFunction signal , const QObject * context , Functor functor , Qt::ConnectionType type ) |
类 QPair :
| operator= (QPair<TT1, TT2> && p ) | |
| operator= (const QPair<TT1, TT2> & p ) |
| operator= (QPersistentModelIndex && other ) |
类 QRegExp :
| operator= (QRegExp && other ) |
| operator= (QSharedDataPointer<T> && other ) |
类 QString :
| fromCFString (CFStringRef string ) | |
| fromNSString (const NSString * string ) | |
| operator= (QString && other ) | |
| toCFString () const | |
| toNSString () const |
类 QStringRef :
| left (int n ) const | |
| mid (int position , int n ) const | |
| right (int n ) const |
类 QThread :
| isInterruptionRequested () const | |
| requestInterruption () |
类 QThreadPool :
| clear () |
类 QUrl :
| adjusted (QUrl::FormattingOptions options ) const | |
| fileName (QUrl::ComponentFormattingOptions options ) const | |
| fromCFURL (CFURLRef url ) | |
| fromNSURL (const NSURL * url ) | |
| matches (const QUrl & url , QUrl::FormattingOptions options ) const | |
| operator= (QUrl && other ) | |
| toCFURL () const | |
| toNSURL () const |
类 QUrlQuery :
| operator= (QUrlQuery && other ) |
类 QVariant :
| operator= (QVariant && other ) |
类 QVector :
| length () const | |
| operator= (QVector<T> && other ) | |
| removeAt (int i ) | |
| takeAt (int i ) |
类 QCursor :
| operator= (QCursor && other ) |
类 QGuiApplication :
| applicationState () | |
| applicationStateChanged (Qt::ApplicationState state ) | |
| sync () |
类 QIcon :
| operator= (QIcon && other ) |
类 QImage :
| operator= (QImage && other ) |
类 QKeySequence :
| operator= (QKeySequence && other ) |
| gestureType () const | |
| globalPos () const | |
| localPos () const | |
| pos () const | |
| screenPos () const | |
| value () const | |
| windowPos () const |
类 QBrush :
| operator= (QBrush && other ) |
类 QColor :
| name (QColor::NameFormat format ) const |
类 QPainterPath :
| operator= (QPainterPath && other ) |
类 QPalette :
| operator= (QPalette && other ) |
类 QPen :
| operator= (QPen && other ) |
类 QPicture :
| operator= (QPicture && other ) |
类 QPixmap :
| operator= (QPixmap && other ) |
类 QRegion :
| operator= (QRegion && other ) |
类 QTouchDevice :
| maximumTouchPoints () const |
类 QVector2D :
| operator[] (int i ) | |
| operator[] (int i ) const |
类 QVector4D :
| operator[] (int i ) | |
| operator[] (int i ) const |
类 QVector3D :
| operator[] (int i ) | |
| operator[] (int i ) const |
类 QWheelEvent :
| phase () const |
类 QAbstractTextDocumentLayout :
| unregisterHandler (int objectType , QObject * component ) |
类 QFontDatabase :
| systemFont (QFontDatabase::SystemFont type ) |
类 QFont :
| operator= (QFont && other ) |
类 QFontMetrics :
| operator= (QFontMetrics && other ) |
| registerAliasToFontFamily (const QString & familyName , const QString & alias ) |
| virtual | createEventDispatcher () const = 0 |
| virtual | createPlatformSessionManager (const QString & id , const QString & key ) const |
| virtual | sync () |
类 QPlatformTheme :
| virtual | keyBindings (QKeySequence::StandardKey key ) const |
| connectToHost (const QString & hostName , quint16 port ) | |
| connectToHostEncrypted (const QString & hostName , quint16 port , const QSslConfiguration & sslConfiguration ) | |
| supportedSchemes () const | |
| supportedSchemesImplementation () const |
| bearerTypeFamily () const |
| sessionTicket () const | |
| sessionTicketLifeTimeHint () const | |
| setSessionTicket (const QByteArray & sessionTicket ) |
类 QQuickWindow :
| resetOpenGLState () |
类 QPressureReading :
| setTemperature (qreal temperature ) |
类 QSerialPort :
| handle () const |
| virtual | viewportSizeHint () const override |
| virtual | viewportSizeHint () const |
类 QButtonGroup :
| buttonToggled (QAbstractButton * button , bool checked ) | |
| buttonToggled (int id , bool checked ) |
类 QFileDialog :
| currentUrlChanged (const QUrl & url ) | |
| directoryUrl () const | |
| directoryUrlEntered (const QUrl & directory ) | |
| getExistingDirectoryUrl (QWidget * parent , const QString & caption , const QUrl & dir , QFileDialog::Options options , const QStringList & supportedSchemes ) | |
| getOpenFileUrl (QWidget * parent , const QString & caption , const QUrl & dir , const QString & filter , QString * selectedFilter , QFileDialog::Options options , const QStringList & supportedSchemes ) | |
| getOpenFileUrls (QWidget * parent , const QString & caption , const QUrl & dir , const QString & filter , QString * selectedFilter , QFileDialog::Options options , const QStringList & supportedSchemes ) | |
| getSaveFileUrl (QWidget * parent , const QString & caption , const QUrl & dir , const QString & filter , QString * selectedFilter , QFileDialog::Options options , const QStringList & supportedSchemes ) | |
| mimeTypeFilters () const | |
| selectMimeTypeFilter (const QString & filter ) | |
| selectUrl (const QUrl & url ) | |
| selectedUrls () const | |
| setDirectoryUrl (const QUrl & directory ) | |
| setMimeTypeFilters (const QStringList & filters ) | |
| urlSelected (const QUrl & url ) | |
| urlsSelected (const QList<QUrl> & urls ) |
| options () const | |
| setOptions (QFileIconProvider::Options options ) |
类 QHeaderView :
| resizeContentsPrecision () const | |
| setResizeContentsPrecision (int precision ) |
类 QInputDialog :
| getMultiLineText (QWidget * parent , const QString & title , const QString & label , const QString & text , bool * ok , Qt::WindowFlags flags , Qt::InputMethodHints inputMethodHints ) |
类 QLayout :
| replaceWidget (QWidget * from , QWidget * to , Qt::FindChildOptions options ) |
类 QLineEdit :
| addAction (const QIcon & icon , QLineEdit::ActionPosition position ) | |
| addAction (QAction * action , QLineEdit::ActionPosition position ) |
类 QListView :
| virtual | viewportSizeHint () const override |
类 QMainWindow :
| takeCentralWidget () |
类 QMenu :
| setAsDockMenu () | |
| toNSMenu () |
类 QMenuBar :
| toNSMenu () |
类 QMessageBox :
| checkBox () const | |
| setCheckBox (QCheckBox * cb ) |
类 QSizePolicy :
| retainSizeWhenHidden () const | |
| setRetainSizeWhenHidden (bool retainSize ) |
类 QSplashScreen :
| message () const |
类 QTabBar :
| tabBarClicked (int index ) | |
| tabBarDoubleClicked (int index ) |
类 QTabWidget :
| tabBarClicked (int index ) | |
| tabBarDoubleClicked (int index ) |
类 QToolTip :
| showText (const QPoint & pos , const QString & text , QWidget * w , const QRect & rect , int msecDisplayTime ) |
类 QTreeView :
| setTreePosition (int index ) | |
| treePosition () const |
类 QWidget :
| windowIconChanged (const QIcon & icon ) | |
| windowTitleChanged (const QString & title ) |
类 QX11Info :
| getTimestamp () | |
| isPlatformX11 () |
| colorizationColor (bool * opaqueBlend ) | |
| createMask (const QBitmap & bitmap ) | |
| disableBlurBehindWindow (QWindow * window ) | |
| disableBlurBehindWindow (QWidget * window ) | |
| enableBlurBehindWindow (QWindow * window , const QRegion & region ) | |
| enableBlurBehindWindow (QWindow * window ) | |
| enableBlurBehindWindow (QWidget * window , const QRegion & region ) | |
| enableBlurBehindWindow (QWidget * window ) | |
| errorStringFromHresult (int hresult ) | |
| extendFrameIntoClientArea (QWindow * window , int left , int top , int right , int bottom ) | |
| extendFrameIntoClientArea (QWindow * window , const QMargins & margins ) | |
| extendFrameIntoClientArea (QWidget * window , int left , int top , int right , int bottom ) | |
| extendFrameIntoClientArea (QWidget * window , const QMargins & margins ) | |
| fromHBITMAP (HBITMAP bitmap , QtWin::HBitmapFormat format ) | |
| fromHICON (HICON icon ) | |
| fromHRGN (HRGN hrgn ) | |
| imageFromHBITMAP (int hdc , HBITMAP bitmap , int width , int height ) | |
| isCompositionEnabled () | |
| isCompositionOpaque () | |
| isWindowExcludedFromPeek (QWindow * window ) | |
| isWindowExcludedFromPeek (QWidget * window ) | |
| isWindowPeekDisallowed (QWindow * window ) | |
| isWindowPeekDisallowed (QWidget * window ) | |
| markFullscreenWindow (QWindow * window , bool fullscreen ) | |
| markFullscreenWindow (QWidget * window , bool fullscreen ) | |
| realColorizationColor () | |
| resetExtendedFrame (QWindow * window ) | |
| resetExtendedFrame (QWidget * window ) | |
| setCompositionEnabled (bool enabled ) | |
| setCurrentProcessExplicitAppUserModelID (const QString & id ) | |
| setWindowDisallowPeek (QWindow * window , bool disallow ) | |
| setWindowDisallowPeek (QWidget * window , bool disallow ) | |
| setWindowExcludedFromPeek (QWindow * window , bool exclude ) | |
| setWindowExcludedFromPeek (QWidget * window , bool exclude ) | |
| setWindowFlip3DPolicy (QWindow * window , QtWin::WindowFlip3DPolicy policy ) | |
| setWindowFlip3DPolicy (QWidget * window , QtWin::WindowFlip3DPolicy policy ) | |
| stringFromHresult (int hresult ) | |
| taskbarActivateTab (QWindow * window ) | |
| taskbarActivateTab (QWidget * window ) | |
| taskbarActivateTabAlt (QWindow * window ) | |
| taskbarActivateTabAlt (QWidget * window ) | |
| taskbarAddTab (QWindow * window ) | |
| taskbarAddTab (QWidget * window ) | |
| taskbarDeleteTab (QWindow * window ) | |
| taskbarDeleteTab (QWidget * window ) | |
| toHBITMAP (const QPixmap & p , QtWin::HBitmapFormat format ) | |
| toHICON (const QPixmap & p ) | |
| toHRGN (const QRegion & region ) | |
| windowFlip3DPolicy (QWindow * window ) | |
| windowFlip3DPolicy (QWidget * window ) |
| qFloatDistance (double a , double b ) | |
| qFloatDistance (float a , float b ) | |
| qPopulationCount (quint8 v ) | |
| qPopulationCount (quint64 v ) | |
| qPopulationCount (quint32 v ) | |
| qPopulationCount (quint16 v ) |
| Q_DECLARE_LOGGING_CATEGORY ( name ) | |
| Q_FORWARD_DECLARE_CF_TYPE ( type ) | |
| Q_FORWARD_DECLARE_MUTABLE_CF_TYPE ( type ) | |
| Q_FORWARD_DECLARE_OBJC_CLASS ( classname ) | |
| Q_LOGGING_CATEGORY ( name , string ) | |
| qCCritical ( category ) | |
| qCDebug ( category ) | |
| qCWarning ( category ) |
| enum | SizeAdjustPolicy { AdjustIgnored, AdjustToContentsOnFirstShow, AdjustToContents } |
| enum | Base64Option { Base64Encoding, Base64UrlEncoding, KeepTrailingEquals, OmitTrailingEquals } |
| enum | Option { DontUseCustomDirectoryIcons } |
| enum | SystemFont { GeneralFont, FixedFont, TitleFont, SmallestReadableFont } |
| enum | ActionPosition { LeadingPosition, TrailingPosition } |
| enum | InputChannelMode { ManagedInputChannel, ForwardedInputChannel } |
| enum | NativeGestureType { BeginNativeGesture, EndNativeGesture, PanNativeGesture, ZoomNativeGesture, ..., SwipeNativeGesture } |
| enum | ScrollPhase { NoScrollPhase, ScrollBegin, ScrollUpdate, ScrollEnd, ScrollMomentum } |
| enum | HBitmapFormat { HBitmapNoAlpha, HBitmapPremultipliedAlpha, HBitmapAlpha } |
| enum | WindowFlip3DPolicy { FlipDefault, FlipExcludeBelow, FlipExcludeAbove } |
|
|
| colorData | |
| dragType | |
| formats | |
| hasColor | |
| hasHtml | |
| hasText | |
| hasUrls | |
| hoveredLink | |
| hoveredLink | |
| html | |
| mimeData | |
| pixelDensity | |
| proposedAction | |
| showFiles | |
| showHidden | |
| text | |
| urls |
| linkHovered () | |
| linkHovered () | |
| editingFinished () |
| acceptProposedAction () | |
| getDataAsString () | |
| matches () | |
| append () |