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:

exists(file)
operator=(other)

Class QProcess:


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:


Class QObject:

connect(sender, signal, context, functor, type)

Class QVariant:

operator=(other)

Class QMimeType:

operator=(other)

Class QThread:


Class QThreadPool:

clear()

Class QBitArray:

operator=(other)

Class QByteArray:

fromBase64(base64, options)
operator=(other)
toBase64(options) const

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:

first()
first() const
firstKey() const
last()
last() const
lastKey() const
operator=(other)

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:

left(n) const
mid(position, n) const
right(n) const

Class QVector:

length() const
operator=(other)
removeAt(i)
takeAt(i)

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:


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:


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:


Class QSslConfiguration:


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:


Class QListView:

virtual viewportSizeHint() const

Class QTreeView:

setTreePosition(index)
treePosition() const

Class QLayout:

replaceWidget(from, to, options)

Class QSizePolicy:


Class QWidget:


Class QToolTip:

showText(pos, text, w, rect, msecDisplayTime)

Class QAbstractScrollArea:

virtual viewportSizeHint() const

Class QButtonGroup:

buttonToggled(button, checked)
buttonToggled(id, checked)

Class QLineEdit:

addAction(icon, position)
addAction(action, position)

Class QMainWindow:


Class QSplashScreen:

message() const

Class QTabBar:


Class QTabWidget:


New Global Functions

New Macros

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

Additions to Other Qt 5 Releases