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:
| QDir & | operator=(other) |
Class QFileInfo:
Class QProcess:
| InputChannelMode | inputChannelMode() const |
| QString | nullDevice() |
| void | setInputChannelMode(mode) |
Class QUrl:
| QUrl | adjusted(options) const |
| QString | fileName(options) const |
| QUrl | fromCFURL(url) |
| QUrl | fromNSURL(url) |
| bool | matches(url, options) const |
| QUrl & | operator=(other) |
| CFURLRef | toCFURL() const |
| NSURL * | toNSURL() const |
Class QUrlQuery:
| QUrlQuery & | operator=(other) |
Class QPersistentModelIndex:
| QPersistentModelIndex & | operator=(other) |
Class QMetaType:
| bool | compare(lhs, rhs, typeId, result) |
| bool | convert(from, fromTypeId, to, toTypeId) |
| bool | debugStream(dbg, rhs, typeId) |
| bool | hasRegisteredComparators() |
| bool | hasRegisteredComparators(typeId) |
| bool | hasRegisteredConverterFunction() |
| bool | hasRegisteredConverterFunction(fromTypeId, toTypeId) |
| bool | hasRegisteredDebugStreamOperator() |
| bool | hasRegisteredDebugStreamOperator(typeId) |
| bool | registerComparators() |
| bool | registerConverter() |
| bool | registerConverter(function) |
| bool | registerConverter(function) |
| bool | registerConverter(function) |
Class QObject:
| QMetaObject::Connection | connect(sender, signal, context, functor, type) |
Class QVariant:
| QVariant & | operator=(other) |
Class QMimeType:
| QMimeType & | operator=(other) |
Class QIcon:
| QIcon & | operator=(other) |
Class QImage:
| QImage & | operator=(other) |
Class QPicture:
| QPicture & | operator=(other) |
Class QPixmap:
| QPixmap & | operator=(other) |
Class QCursor:
| QCursor & | operator=(other) |
Class QNativeGestureEvent:
| 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 |
Class QWheelEvent:
| Qt::ScrollPhase | phase() const |
Class QGuiApplication:
| Qt::ApplicationState | applicationState() |
| void | applicationStateChanged(state) |
| void | sync() |
Class QKeySequence:
| QKeySequence & | operator=(other) |
Class QPalette:
| QPalette & | operator=(other) |
Class QPlatformIntegration:
| virtual QAbstractEventDispatcher * | createEventDispatcher() const = 0 |
| virtual QPlatformSessionManager * | createPlatformSessionManager(id, key) const |
| virtual void | sync() |
Class QPlatformTheme:
| virtual QList<QKeySequence> | keyBindings(key) const |
Class QTouchDevice:
| int | maximumTouchPoints() const |
Class QVector2D:
| float & | operator[](i) |
| float | operator[](i) const |
Class QVector3D:
| float & | operator[](i) |
| float | operator[](i) const |
Class QVector4D:
| float & | operator[](i) |
| float | operator[](i) const |
Class QBrush:
| QBrush & | operator=(other) |
Class QColor:
| QString | name(format) const |
Class QPainterPath:
| QPainterPath & | operator=(other) |
Class QPen:
| QPen & | operator=(other) |
Class QRegion:
| QRegion & | operator=(other) |
Class QAbstractTextDocumentLayout:
| void | unregisterHandler(objectType, component) |
Class QFont:
| QFont & | operator=(other) |
Class QFontDatabase:
| QFont | systemFont(type) |
Class QFontMetrics:
| QFontMetrics & | operator=(other) |
Class QPlatformFontDatabase:
| void | registerAliasToFontFamily(familyName, alias) |
Class QNetworkAccessManager:
| void | connectToHost(hostName, port) |
| void | connectToHostEncrypted(hostName, port, sslConfiguration) |
| QStringList | supportedSchemes() const |
| QStringList | supportedSchemesImplementation() const |
Class QNetworkConfiguration:
| BearerType | bearerTypeFamily() const |
Class QSslConfiguration:
| QByteArray | sessionTicket() const |
| int | sessionTicketLifeTimeHint() const |
| void | setSessionTicket(sessionTicket) |
Class QFileDialog:
| void | currentUrlChanged(url) |
| QUrl | directoryUrl() const |
| void | directoryUrlEntered(directory) |
| QUrl | getExistingDirectoryUrl(parent, caption, dir, options, supportedSchemes) |
| QUrl | getOpenFileUrl(parent, caption, dir, filter, selectedFilter, options, supportedSchemes) |
| QList<QUrl> | getOpenFileUrls(parent, caption, dir, filter, selectedFilter, options, supportedSchemes) |
| QUrl | getSaveFileUrl(parent, caption, dir, filter, selectedFilter, options, supportedSchemes) |
| QStringList | mimeTypeFilters() const |
| void | selectMimeTypeFilter(filter) |
| void | selectUrl(url) |
| QList<QUrl> | selectedUrls() const |
| void | setDirectoryUrl(directory) |
| void | setMimeTypeFilters(filters) |
| void | urlSelected(url) |
| void | urlsSelected(urls) |
Class QInputDialog:
| QString | getMultiLineText(parent, title, label, text, ok, flags, inputMethodHints) |
Class QMessageBox:
| QCheckBox * | checkBox() const |
| void | setCheckBox(cb) |
Class QAbstractItemView:
| virtual QSize | viewportSizeHint() const |
Class QFileIconProvider:
| Options | options() const |
| void | setOptions(options) |
Class QHeaderView:
| int | resizeContentsPrecision() const |
| void | setResizeContentsPrecision(precision) |
Class QListView:
| virtual QSize | viewportSizeHint() const |
Class QTreeView:
| void | setTreePosition(index) |
| int | treePosition() const |
Class QLayout:
| QLayoutItem * | replaceWidget(from, to, options) |
Class QSizePolicy:
| bool | retainSizeWhenHidden() const |
| void | setRetainSizeWhenHidden(retainSize) |
Class QToolTip:
| void | showText(pos, text, w, rect, msecDisplayTime) |
Class QWidget:
| void | windowIconChanged(icon) |
| void | windowTitleChanged(title) |
Class QAbstractScrollArea:
| virtual QSize | viewportSizeHint() const |
Class QButtonGroup:
| void | buttonToggled(button, checked) |
| void | buttonToggled(id, checked) |
Class QLineEdit:
Class QMainWindow:
| QWidget * | takeCentralWidget() |
Class QMenu:
| void | setAsDockMenu() |
| NSMenu * | toNSMenu() |
Class QMenuBar:
| NSMenu * | toNSMenu() |
Class QSplashScreen:
| QString | message() const |
Class QTabBar:
| void | tabBarClicked(index) |
| void | tabBarDoubleClicked(index) |
Class QTabWidget:
| void | tabBarClicked(index) |
| void | tabBarDoubleClicked(index) |
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) |
New Enum Types
| enum | SizeAdjustPolicy { AdjustIgnored, AdjustToContentsOnFirstShow, AdjustToContents } |
| 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 } |
New Properties
|
|