New Classes and Functions in Qt 5.7 | Qt 5.9

Qt 5.9 | New Classes and Functions in Qt 5.7

Qt 5.9.4 Reference Documentation

# New Classes and Functions in Qt 5.7

This page contains a comprehensive list of all new classes and functions introduced in Qt 5.7. Links to new APIs in previous Qt 5 releases are found at the bottom of this page.

- New Member Functions
- New Global Functions
- New Macros
- New Enum Types
- New Typedefs
- New Properties

### New Member Functions

Class QUtf8:

| convertToUnicode(QChar *buffer, const char *chars, int len)

Class QFlags:

| setFlag(Enum flag, bool on)

Class QDataStream:

| abortTransaction()
| commitTransaction()
| rollbackTransaction()
| startTransaction()

Class QIODevice:

| channelBytesWritten(int channel, qint64 bytes)
| channelReadyRead(int channel)
| commitTransaction()
| currentReadChannel() const
| currentWriteChannel() const
| isTransactionStarted() const
| readChannelCount() const
| rollbackTransaction()
| setCurrentReadChannel(int channel)
| setCurrentWriteChannel(int channel)
| startTransaction()
| writeChannelCount() const

Class QProcess:

| createProcessArgumentsModifier() const
| setCreateProcessArgumentsModifier(CreateProcessArgumentModifier modifier)

Class QJsonObject:

| constFind(QLatin1String key) const
| contains(QLatin1String key) const
| find(QLatin1String key)
| find(QLatin1String key) const
| operator[](QLatin1String key)
| operator[](QLatin1String key) const
| value(QLatin1String key) const

Class QMetaObject:

| inherits(const QMetaObject *metaObject) const

Class QUuid:

| fromCFUUID(CFUUIDRef uuid)
| fromNSUUID(const NSUUID *uuid)
| toCFUUID() const
| toNSUUID() const

Class QBasicMutex:

| isRecursive() const

Class QMutex:

| isRecursive() const

Class QByteArray:

| append(int count, char ch)
| insert(int i, int count, char ch)
| prepend(int count, char ch)

Class QHash:

| equal_range(const Key &key)
| equal_range(const Key &key) const
| erase(const_iterator pos)

Class QLocale:

| toCurrencyString(double value, const QString &symbol, int precision) const

Class QRect:

| transposed() const

Class QRectF:

| transposed() const

Class QSet:

| erase(const_iterator pos)

Class QString:

| resize(int size, QChar fillChar)

Class QStringRef:

| crbegin() const
| crend() const
| operator[](int position) const
| rbegin() const
| rend() const

Class QIconEngine:

| isNull() const

Class Key:

| isValid() const

Class QDrag:

| cancel()

Class QWheelEvent:

| inverted() const

Class QPlatformDrag:

virtual | cancelDrag()

Class QPlatformIntegration:

virtual | beep() const

Class QOpenGLFramebufferObject:

| blitFramebuffer(QOpenGLFramebufferObject *target, const QRect &targetRect, QOpenGLFramebufferObject *source, const QRect &sourceRect, GLbitfield buffers, GLenum filter, int readColorAttachmentIndex, int drawColorAttachmentIndex, FramebufferRestorePolicy restorePolicy)

Class QNetworkInterface:

| interfaceIndexFromName(const QString &name)
| interfaceNameFromIndex(int index)

Class QSslConfiguration:

| ephemeralServerKey() const

Class QWindowsWindowFunctions:

| setWindowActivationBehavior(WindowActivationBehavior behavior)
| setWindowActivationBehaviorIdentifier()

Class QMenu:

| showTearOffMenu()
| showTearOffMenu(const QPoint &pos)

### New Global Functions

| operator<<(QDebug stream, const std::vector<T, Alloc> &vector)
| operator<<(QDebug stream, const std::multimap<Key, T, Compare, Alloc> &map)
| operator<<(QDebug stream, const std::map<Key, T, Compare, Alloc> &map)
| operator<<(QDebug stream, const std::list<T, Alloc> &list)
| operator<<(QDebug debug, const QSharedPointer<T> &ptr)
| qAsConst(T &t)
| qConstOverload(T memberFunctionPointer)
| qHash(const std::pair<T1, T2> &key, uint seed)
| qNonConstOverload(T memberFunctionPointer)
| qOverload(T functionPointer)

### New Macros

| qUtf16Printable(const QString &str)

### New Enum Types

enum | FloatingPointPrecisionOption { FloatingPointShortest }
enum | FramebufferRestorePolicy { DontRestoreFramebufferBinding, RestoreFramebufferBindingToDefault, RestoreFrameBufferBinding }
enum | WindowActivationBehavior { DefaultActivateWindow, AlwaysActivateWindow }

### New Typedefs

typedef | const_reverse_iterator
typedef | SetWindowActivationBehaviorType

### New Properties

- desktopFileName : const

## Additions to Other Qt 5 Releases

- What's New in Qt 5.6
- What's New in Qt 5.5
- What's New in Qt 5.4
- What's New in Qt 5.3
- What's New in Qt 5.2
- What's New in Qt 5.1
- What's New in Qt 5.0