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 Classes
New Member Functions
Class QDir:
| operator=(other) |
Class QFileInfo:
Class QProcess:
| inputChannelMode() const | |
| nullDevice() | |
| setInputChannelMode(mode) |
Class QUrl:
| adjusted(options) const | |
| fileName(options) const | |
| fromCFURL(url) | |
| fromNSURL(url) | |
| matches(url, options) const | |
| operator=(other) | |
| toCFURL() const | |
| toNSURL() const |
Class QUrlQuery:
| operator=(other) |
Class QPersistentModelIndex:
| operator=(other) |
Class QMetaType:
| compare(lhs, rhs, typeId, result) | |
| convert(from, fromTypeId, to, toTypeId) | |
| debugStream(dbg, rhs, typeId) | |
| hasRegisteredComparators() | |
| hasRegisteredComparators(typeId) | |
| hasRegisteredConverterFunction() | |
| hasRegisteredConverterFunction(fromTypeId, toTypeId) | |
| hasRegisteredDebugStreamOperator() | |
| hasRegisteredDebugStreamOperator(typeId) | |
| registerComparators() | |
| registerConverter() | |
| registerConverter(function) | |
| registerConverter(function) | |
| registerConverter(function) |
Class QObject:
| connect(sender, signal, context, functor, type) |
Class QVariant:
| operator=(other) |
Class QMimeType:
| operator=(other) |
Class QThread:
| isInterruptionRequested() const | |
| requestInterruption() |
Class QThreadPool:
| clear() |
Class QByteArray:
| fromBase64(base64, options) | |
| operator=(other) | |
| toBase64(options) const |
Class QBitArray:
| operator=(other) |
Class QCommandLineOption:
| operator=(other) |
Class QContiguousCache:
| operator=(other) |
Class QDateTime:
| fromMSecsSinceEpoch(msecs, spec, offsetSeconds) | |
| fromMSecsSinceEpoch(msecs, timeZone) | |
| isDaylightTime() const | |
| offsetFromUtc() const | |
| setOffsetFromUtc(offsetSeconds) | |
| setTimeZone(toZone) | |
| timeZone() const | |
| timeZoneAbbreviation() const | |
| toOffsetFromUtc(offsetSeconds) const | |
| toTimeZone(timeZone) const |
Class QEasingCurve:
| operator=(other) |
Class QHash:
| operator=(other) |
Class QLinkedList:
| operator=(other) |
Class QList:
| operator=(other) |
Class QMap:
Class QPair:
Class QRegExp:
| operator=(other) |
Class QExplicitlySharedDataPointer:
| operator=(other) |
Class QSharedDataPointer:
| operator=(other) |
Class QString:
| fromCFString(string) | |
| fromNSString(string) | |
| operator=(other) | |
| toCFString() const | |
| toNSString() const |
Class QStringRef:
Class QVector:
Class QIcon:
| operator=(other) |
Class QImage:
| operator=(other) |
Class QPicture:
| operator=(other) |
Class QPixmap:
| operator=(other) |
Class QCursor:
| operator=(other) |
Class QNativeGestureEvent:
| gestureType() const | |
| globalPos() const | |
| localPos() const | |
| pos() const | |
| screenPos() const | |
| value() const | |
| windowPos() const |
Class QWheelEvent:
| phase() const |
Class QGuiApplication:
| applicationState() | |
| applicationStateChanged(state) | |
| sync() |
Class QKeySequence:
| operator=(other) |
Class QPalette:
| operator=(other) |
Class QPlatformIntegration:
| virtual | createEventDispatcher() const = 0 |
| virtual | createPlatformSessionManager(id, key) const |
| virtual | sync() |
Class QPlatformTheme:
| virtual | keyBindings(key) const |
Class QTouchDevice:
| maximumTouchPoints() const |
Class QVector3D:
| operator[](i) | |
| operator[](i) const |
Class QVector2D:
| operator[](i) | |
| operator[](i) const |
Class QVector4D:
| operator[](i) | |
| operator[](i) const |
Class QBrush:
| operator=(other) |
Class QColor:
| name(format) const |
Class QPainterPath:
| operator=(other) |
Class QPen:
| operator=(other) |
Class QRegion:
| operator=(other) |
Class QAbstractTextDocumentLayout:
| unregisterHandler(objectType, component) |
Class QFont:
| operator=(other) |
Class QFontDatabase:
| systemFont(type) |
Class QFontMetrics:
| operator=(other) |
Class QPlatformFontDatabase:
| registerAliasToFontFamily(familyName, alias) |
Class QNetworkAccessManager:
| connectToHost(hostName, port) | |
| connectToHostEncrypted(hostName, port, sslConfiguration) | |
| supportedSchemes() const | |
| supportedSchemesImplementation() const |
Class QNetworkConfiguration:
| bearerTypeFamily() const |
Class QSslConfiguration:
| sessionTicket() const | |
| sessionTicketLifeTimeHint() const | |
| setSessionTicket(sessionTicket) |
Class QFileDialog:
| currentUrlChanged(url) | |
| directoryUrl() const | |
| directoryUrlEntered(directory) | |
| getExistingDirectoryUrl(parent, caption, dir, options, supportedSchemes) | |
| getOpenFileUrl(parent, caption, dir, filter, selectedFilter, options, supportedSchemes) | |
| getOpenFileUrls(parent, caption, dir, filter, selectedFilter, options, supportedSchemes) | |
| getSaveFileUrl(parent, caption, dir, filter, selectedFilter, options, supportedSchemes) | |
| mimeTypeFilters() const | |
| selectMimeTypeFilter(filter) | |
| selectUrl(url) | |
| selectedUrls() const | |
| setDirectoryUrl(directory) | |
| setMimeTypeFilters(filters) | |
| urlSelected(url) | |
| urlsSelected(urls) |
Class QInputDialog:
| getMultiLineText(parent, title, label, text, ok, flags, inputMethodHints) |
Class QMessageBox:
| checkBox() const | |
| setCheckBox(cb) |
Class QAbstractItemView:
| virtual | viewportSizeHint() const |
Class QFileIconProvider:
| options() const | |
| setOptions(options) |
Class QHeaderView:
| resizeContentsPrecision() const | |
| setResizeContentsPrecision(precision) |
Class QListView:
| virtual | viewportSizeHint() const |
Class QTreeView:
| setTreePosition(index) | |
| treePosition() const |
Class QLayout:
| replaceWidget(from, to, options) |
Class QSizePolicy:
| retainSizeWhenHidden() const | |
| setRetainSizeWhenHidden(retainSize) |
Class QToolTip:
| showText(pos, text, w, rect, msecDisplayTime) |
Class QWidget:
| windowIconChanged(icon) | |
| windowTitleChanged(title) |
Class QAbstractScrollArea:
| virtual | viewportSizeHint() const |
Class QButtonGroup:
| buttonToggled(button, checked) | |
| buttonToggled(id, checked) |
Class QLineEdit:
Class QMainWindow:
Class QSplashScreen:
| message() const |
Class QTabBar:
| tabBarClicked(index) | |
| tabBarDoubleClicked(index) |
Class QTabWidget:
| tabBarClicked(index) | |
| tabBarDoubleClicked(index) |
New Global Functions
| qFloatDistance(a, b) | |
| qFloatDistance(a, b) | |
| qPopulationCount(v) | |
| qPopulationCount(v) | |
| qPopulationCount(v) | |
| qPopulationCount(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, 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 } |
New Properties
|
|