New Classes and Functions in Qt 5.2
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.
- New Namespaces
- New Classes
- New Member Functions
- New Global Functions
- New Macros
- New Enum Types
- New Properties
- New QML Types
- New QML Properties
- New QML Signals
- New QML Methods
New Namespaces
| namespace | QBluetooth |
New Classes
- B
- QBluetoothAddress
- QBluetoothDeviceDiscoveryAgent
- QBluetoothDeviceInfo
- QBluetoothHostInfo
- QBluetoothLocalDevice
- QBluetoothServer
- QBluetoothServiceDiscoveryAgent
- QBluetoothServiceInfo
- QBluetoothSocket
- QBluetoothTransferManager
- QBluetoothTransferReply
- QBluetoothTransferRequest
- QBluetoothUuid
- C
- const_iterator (QAssociativeIterable)
- QCollator
- QCollatorSortKey
- QCommandLineOption
- QCommandLineParser
- const_iterator (QSequentialIterable)
- G
- QGeoAddress
- QGeoAreaMonitorInfo
- QGeoAreaMonitorSource
- QGeoCircle
- QGeoCoordinate
- QGeoLocation
- QGeoPositionInfo
- QGeoPositionInfoSource
- QGeoPositionInfoSourceFactory
- QGeoRectangle
- QGeoSatelliteInfo
- QGeoSatelliteInfoSource
- QGeoShape
New Member Functions
Class QMessageBox:
| QCheckBox * | checkBox() const |
| void | setCheckBox(QCheckBox *cb) |
Class QPressureReading:
| void | setTemperature(qreal temperature) |
Class QDir:
| QDir & | operator=(QDir &&other) |
Class QFileDialog:
| void | currentUrlChanged(const QUrl &url) |
| QUrl | directoryUrl() const |
| void | directoryUrlEntered(const QUrl &directory) |
| QUrl | getExistingDirectoryUrl(QWidget *parent = Q_NULLPTR, const QString &caption = QString(), const QUrl &dir = QUrl(), Options options = ShowDirsOnly, const QStringList &supportedSchemes = QStringList()) |
| QUrl | getOpenFileUrl(QWidget *parent = Q_NULLPTR, const QString &caption = QString(), const QUrl &dir = QUrl(), const QString &filter = QString(), QString *selectedFilter = Q_NULLPTR, Options options = Options(), const QStringList &supportedSchemes = QStringList()) |
| QList<QUrl> | getOpenFileUrls(QWidget *parent = Q_NULLPTR, const QString &caption = QString(), const QUrl &dir = QUrl(), const QString &filter = QString(), QString *selectedFilter = Q_NULLPTR, Options options = Options(), const QStringList &supportedSchemes = QStringList()) |
| QUrl | getSaveFileUrl(QWidget *parent = Q_NULLPTR, const QString &caption = QString(), const QUrl &dir = QUrl(), const QString &filter = QString(), QString *selectedFilter = Q_NULLPTR, Options options = Options(), const QStringList &supportedSchemes = QStringList()) |
| 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) |
Class QSharedDataPointer:
| QSharedDataPointer<T> & | operator=(QSharedDataPointer<T> &&other) |
Class QCommandLineOption:
| QCommandLineOption & | operator=(QCommandLineOption &&other) |
Class QExplicitlySharedDataPointer:
| QExplicitlySharedDataPointer<T> & | operator=(QExplicitlySharedDataPointer<T> &&other) |
Class QContiguousCache:
| QContiguousCache<T> & | operator=(QContiguousCache<T> &&other) |
Class QHash:
| QHash & | operator=(QHash &&other) |
Class QTabBar:
| void | tabBarClicked(int index) |
| void | tabBarDoubleClicked(int index) |
Class QNetworkAccessManager:
| void | connectToHost(const QString &hostName, quint16 port = 80) |
| void | connectToHostEncrypted(const QString &hostName, quint16 port = 443, const QSslConfiguration &sslConfiguration = QSslConfiguration::defaultConfiguration()) |
| QStringList | supportedSchemes() const |
| QStringList | supportedSchemesImplementation() const |
Class QQuickWindow:
| void | resetOpenGLState() |
Class QButtonGroup:
| void | buttonToggled(QAbstractButton *button, bool checked) |
| void | buttonToggled(int id, bool checked) |
Class QLayout:
| QLayoutItem * | replaceWidget(QWidget *from, QWidget *to, Qt::FindChildOptions options = Qt::FindChildrenRecursively) |
Class QUrl:
| QUrl | adjusted(FormattingOptions options) const |
| QString | fileName(ComponentFormattingOptions options = FullyDecoded) const |
| QUrl | fromCFURL(CFURLRef url) |
| QUrl | fromNSURL(const NSURL *url) |
| bool | matches(const QUrl &url, FormattingOptions options) const |
| QUrl & | operator=(QUrl &&other) |
| CFURLRef | toCFURL() const |
| NSURL * | toNSURL() const |
Class QString:
| QString | fromCFString(CFStringRef string) |
| QString | fromNSString(const NSString *string) |
| QString & | operator=(QString &&other) |
| CFStringRef | toCFString() const |
| NSString * | toNSString() const |
Class QWebHitTestResult:
| QUrl | mediaUrl() const |
Class QThread:
| bool | isInterruptionRequested() const |
| void | requestInterruption() |
Class QInputDialog:
| QString | getMultiLineText(QWidget *parent, const QString &title, const QString &label, const QString &text = QString(), bool *ok = Q_NULLPTR, Qt::WindowFlags flags = Qt::WindowFlags(), Qt::InputMethodHints inputMethodHints = Qt::ImhNone) |
Class QWidget:
| void | windowIconChanged(const QIcon &icon) |
| void | windowTitleChanged(const QString &title) |
Class QTabWidget:
| void | tabBarClicked(int index) |
| void | tabBarDoubleClicked(int index) |
Class 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) |
Class QSerialPort:
| Handle | handle() const |
Class QFileIconProvider:
| Options | options() const |
| void | setOptions(Options options) |
Class QHeaderView:
| int | resizeContentsPrecision() const |
| void | setResizeContentsPrecision(int precision) |
Class QSplashScreen:
| QString | message() const |
Class QMenu:
| void | setAsDockMenu() |
| NSMenu * | toNSMenu() |
Class QByteArray:
| QByteArray | fromBase64(const QByteArray &base64, Base64Options options) |
| QByteArray & | operator=(QByteArray &&other) |
| QByteArray | toBase64(Base64Options options) const |
Class QX11Info:
| unsigned long | getTimestamp() |
| bool | isPlatformX11() |
Class QAbstractItemView:
| virtual QSize | viewportSizeHint() const |
Class QUrlQuery:
| QUrlQuery & | operator=(QUrlQuery &&other) |
Class QRegExp:
| QRegExp & | operator=(QRegExp &&other) |
Class QSslConfiguration:
| QByteArray | sessionTicket() const |
| int | sessionTicketLifeTimeHint() const |
| void | setSessionTicket(const QByteArray &sessionTicket) |
Class QThreadPool:
| void | clear() |
Class QEasingCurve:
| QEasingCurve & | operator=(QEasingCurve &&other) |
Class QList:
| QList & | operator=(QList<T> &&other) |
Class QBitArray:
| QBitArray & | operator=(QBitArray &&other) |
Class QProcess:
| InputChannelMode | inputChannelMode() const |
| QString | nullDevice() |
| void | setInputChannelMode(InputChannelMode mode) |
Class QToolTip:
| void | showText(const QPoint &pos, const QString &text, QWidget *w, const QRect &rect, int msecDisplayTime) |
Class 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() |
| bool | hasRegisteredConverterFunction(int fromTypeId, int toTypeId) |
| bool | hasRegisteredDebugStreamOperator() |
| bool | hasRegisteredDebugStreamOperator(int typeId) |
| bool | registerComparators() |
| bool | registerConverter() |
| bool | registerConverter(MemberFunction function) |
| bool | registerConverter(MemberFunctionOk function) |
| bool | registerConverter(UnaryFunction function) |
Class QAbstractScrollArea:
| virtual QSize | viewportSizeHint() const |
Class QVector:
Class QFileInfo:
Class QNetworkConfiguration:
| BearerType | bearerTypeFamily() const |
Class QMainWindow:
| QWidget * | takeCentralWidget() |
Class QLineEdit:
| void | addAction(QAction *action, ActionPosition position) |
| QAction * | addAction(const QIcon &icon, ActionPosition position) |
Class QLinkedList:
| QLinkedList<T> & | operator=(QLinkedList<T> &&other) |
Class QStringRef:
| QStringRef | left(int n) const |
| QStringRef | mid(int position, int n = -1) const |
| QStringRef | right(int n) const |
Class QTreeView:
| void | setTreePosition(int index) |
| int | treePosition() const |
Class QObject:
| QMetaObject::Connection | connect(const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type = Qt::AutoConnection) |
Class QMenuBar:
| NSMenu * | toNSMenu() |
Class QListView:
| virtual QSize | viewportSizeHint() const |
Class QSizePolicy:
| bool | retainSizeWhenHidden() const |
| void | setRetainSizeWhenHidden(bool retainSize) |
Class QPair:
Class QPersistentModelIndex:
| QPersistentModelIndex & | operator=(QPersistentModelIndex &&other) |
Class QVariant:
| QVariant & | operator=(QVariant &&other) |
Class QDateTime:
| QDateTime | fromMSecsSinceEpoch(qint64 msecs, Qt::TimeSpec spec, int offsetSeconds = 0) |
| 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 |
Class QMimeType:
| QMimeType & | operator=(QMimeType &&other) |
New Global Functions
| quint64 | qFloatDistance(double a, double b) |
| quint32 | qFloatDistance(float a, float b) |
| uint | qPopulationCount(quint64 v) |
| uint | qPopulationCount(quint16 v) |
| uint | qPopulationCount(quint8 v) |
| uint | qPopulationCount(quint32 v) |
New Macros
| 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) |
New Enum Types
| enum | SizeAdjustPolicy { AdjustIgnored, AdjustToContents, AdjustToContentsOnFirstShow } |
| enum | Base64Option { Base64Encoding, Base64UrlEncoding, KeepTrailingEquals, OmitTrailingEquals } |
| enum | Option { DontUseCustomDirectoryIcons } |
| enum | ActionPosition { LeadingPosition, TrailingPosition } |
| enum | InputChannelMode { ManagedInputChannel, ForwardedInputChannel } |
| enum | NativeGestureType { BeginNativeGesture, EndNativeGesture, PanNativeGesture, ZoomNativeGesture, ..., SwipeNativeGesture } |
| enum | ScrollPhase { NoScrollPhase, ScrollBegin, ScrollUpdate, ScrollEnd } |
New Properties
|
|
New QML Types
- L
- Location
New QML Properties
| colorData | |
| dragType | |
| formats | |
| hasColor | |
| hasHtml | |
| hasText | |
| hasUrls | |
| hoveredLink | |
| hoveredLink | |
| html | |
| mimeData | |
| pixelDensity | |
| proposedAction | |
| showFiles | |
| showHidden | |
| text | |
| urls |
New QML Signals
| linkHovered(string link) | |
| linkHovered(string link) | |
| editingFinished() |
New QML Methods
| acceptProposedAction() | |
| string | getDataAsString(string format) |
| bool | matches(StandardKey key) |
| void | append(string text) |