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

Class QByteArray:

QByteArray &append(int count, char ch)
QByteArray &insert(int i, int count, char ch)
QByteArray &prepend(int count, char ch)

Class QBasicMutex:

bool isRecursive() const

Class QDataStream:


Class QIconEngine:

bool isNull() const

Class QDrag:

void cancel()

Class Key:

bool isValid() const

Class QWheelEvent:

bool inverted() const

Class QOpenGLFramebufferObject:

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

Class QPlatformDrag:

virtual void cancelDrag()

Class QPlatformIntegration:

virtual void beep() const

Class QNetworkInterface:

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

Class QSslConfiguration:

QSslKey ephemeralServerKey() const

Class QMenu:

void showTearOffMenu()
void showTearOffMenu(const QPoint &pos)

New Global Functions

QDebug operator<<(QDebug debug, const std::vector<T, Alloc> &vec)
QDebug operator<<(QDebug debug, const std::multimap<Key, T, Compare, Alloc> &map)
QDebug operator<<(QDebug debug, const std::map<Key, T, Compare, Alloc> &map)
QDebug operator<<(QDebug debug, const std::list<T, Alloc> &vec)
QDebug operator<<(QDebug debug, const QSharedPointer<T> &ptr)
void qAsConst(const T &&t)
typename std::add_const<T>::type &qAsConst(T &t)
auto qConstOverload(T memberFunctionPointer)
auto qNonConstOverload(T memberFunctionPointer)
auto qOverload(T functionPointer)

New Enum Types

enum FramebufferRestorePolicy { DontRestoreFramebufferBinding, RestoreFramebufferBindingToDefault, RestoreFrameBufferBinding }

New Properties

Additions to Other Qt 5 Releases