- Qt 5.15
- New Classes and Functions in Qt 5.7
- Qt 5.15.12 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 Classes
- New Member Functions
- New Global Functions
- New Macros
- New Enum Types
- New Type Aliases
- New Properties
- New QML Types
- New QML Properties
- New QML Methods

### New Classes

A
  AddressInfo (QLowEnergyAdvertisingParameters)
  QAbstractActionInput (Qt3DInput)
  QAbstractFunctor (Qt3DRender)
  QAction (Qt3DInput)
  QActionInput (Qt3DInput)
  QAlphaCoverage (Qt3DRender)
  QAlphaTest (Qt3DRender)
  QAnalogAxisInput (Qt3DInput)
  QAxis (Qt3DInput)

B
  QBlendEquation (Qt3DRender)
  QButtonAxisInput (Qt3DInput)

C
  QClearBuffers (Qt3DRender)
  QColorMask (Qt3DRender)
  QComputeCommand (Qt3DRender)
  QConeGeometry (Qt3DExtras)
  QCuboidGeometry (Qt3DExtras)
  QCullFace (Qt3DRender)
  QCylinderGeometry (Qt3DExtras)

D
  QDepthTest (Qt3DRender)
  QDiffuseMapMaterial (Qt3DExtras)
  QDiffuseSpecularMapMaterial (Qt3DExtras)
  QDirectionalLight (Qt3DRender)
  QDispatchCompute (Qt3DRender)
  QDithering (Qt3DRender)

E
  QEffect (Qt3DRender)

F
  QFirstPersonCameraController (Qt3DExtras)
  QForwardRenderer (Qt3DExtras)
  QFrontFace (Qt3DRender)
  QFrustumCulling (Qt3DRender)

G
  QGeometry (Qt3DRender)
  QGeometryRenderer (Qt3DRender)
  QGoochMaterial (Qt3DExtras)

I
  QInputChord (Qt3DInput)
  QInputSequence (Qt3DInput)
  QInputSettings (Qt3DInput)

L
  QLogicAspect (Qt3DLogic)
  QLowEnergyAdvertisingData
  QLowEnergyAdvertisingParameters
  QLowEnergyCharacteristicData
  QLowEnergyConnectionParameters
  QLowEnergyDescriptorData
  QLowEnergyServiceData

M
  QMorphPhongMaterial (Qt3DExtras)
  QMultiSampleAntiAliasing (Qt3DRender)

N
  QNodeCreatedChange (Qt3DCore)
  QNodeDestroyedChange (Qt3DCore)
  QNoDepthMask (Qt3DRender)
  QNormalDiffuseMapAlphaMaterial (Qt3DExtras)
  QNormalDiffuseMapMaterial (Qt3DExtras)
  QNormalDiffuseSpecularMapMaterial (Qt3DExtras)

O
  QOrbitCameraController (Qt3DExtras)

P
  QPerVertexColorMaterial (Qt3DExtras)
  QPhongAlphaMaterial (Qt3DExtras)
  QPhongMaterial (Qt3DExtras)
  QPickEvent (Qt3DRender)
  QPickingSettings (Qt3DRender)
  QPickTriangleEvent (Qt3DRender)
  QPlaneGeometry (Qt3DExtras)
  QPointSize (Qt3DRender)
  QPolygonOffset (Qt3DRender)

Q
  QQuickStyle

R
  QRenderAspect (Qt3DRender)
  QRenderPass (Qt3DRender)
  QRenderPassFilter (Qt3DRender)
  QRenderSettings (Qt3DRender)
  QRenderState (Qt3DRender)
  QRenderSurfaceSelector (Qt3DRender)
  QRenderTarget (Qt3DRender)
  QRenderTargetOutput (Qt3DRender)
  QRenderTargetSelector (Qt3DRender)

S
  QSceneLoader (Qt3DRender)
  QScissorTest (Qt3DRender)
  QScxmlCompiler
  QScxmlCppDataModel
  QScxmlDataModel
  QScxmlEcmaScriptDataModel
  QScxmlError
  QScxmlEvent
  QScxmlNullDataModel
  QScxmlStateMachine
  QSeamlessCubemap (Qt3DRender)
  QSortPolicy (Qt3DRender)
  QSphereGeometry (Qt3DExtras)
  QStaticPropertyUpdatedChangeBase (Qt3DCore)
  QStaticPropertyValueAddedChangeBase (Qt3DCore)
  QStaticPropertyValueRemovedChangeBase (Qt3DCore)
  QStencilMask (Qt3DRender)
  QStencilOperation (Qt3DRender)
  QStencilOperationArguments (Qt3DRender)
  QStencilTest (Qt3DRender)
  QStencilTestArguments (Qt3DRender)

T
  QTechnique (Qt3DRender)
  QTechniqueFilter (Qt3DRender)
  QTextureData (Qt3DRender)
  QTextureImageDataGenerator (Qt3DRender)
  QTorusGeometry (Qt3DExtras)

V
  QViewport (Qt3DRender)

### New Member Functions

Class QMenu:

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

Class QBluetoothUuid:

bool | operator!=(const QBluetoothUuid &other) const

Class QLowEnergyController:

QLowEnergyService * | addService(const QLowEnergyServiceData &service, QObject *parent)
void | connectionUpdated(const QLowEnergyConnectionParameters &newParameters)
QLowEnergyController * | createCentral(const QBluetoothDeviceInfo &remoteDevice, QObject *parent)
QLowEnergyController * | createPeripheral(QObject *parent)
void | requestConnectionUpdate(const QLowEnergyConnectionParameters &parameters)
Role | role() const
void | startAdvertising(const QLowEnergyAdvertisingParameters &parameters, const QLowEnergyAdvertisingData &advertisingData, const QLowEnergyAdvertisingData &scanResponseData)
void | stopAdvertising()

Class QBasicMutex:

bool | isRecursive() const

Class QBitArray:

QDebug | operator<<(QDebug debug, const std::vector<T, Alloc> &vec)
QDebug | operator<<(QDebug debug, const std::list<T, Alloc> &vec)
QDebug | operator<<(QDebug debug, const std::map<Key, T, Compare, Alloc> &map)
QDebug | operator<<(QDebug debug, const std::multimap<Key, T, Compare, Alloc> &map)
QDebug | operator<<(QDebug debug, const QSharedPointer<T> &ptr)

Class QByteArray:

QByteArray & | append(int count, char ch)
QByteArray & | insert(int i, int count, char ch)
QDebug | operator<<(QDebug debug, const std::vector<T, Alloc> &vec)
QDebug | operator<<(QDebug debug, const std::list<T, Alloc> &vec)
QDebug | operator<<(QDebug debug, const std::map<Key, T, Compare, Alloc> &map)
QDebug | operator<<(QDebug debug, const std::multimap<Key, T, Compare, Alloc> &map)
QDebug | operator<<(QDebug debug, const QSharedPointer<T> &ptr)
QByteArray & | prepend(int count, char ch)

Class FromBase64Result:

uint | qHash(const std::pair<T1, T2> &key, uint seed)

Class QChar:

QDebug | operator<<(QDebug debug, const std::vector<T, Alloc> &vec)
QDebug | operator<<(QDebug debug, const std::list<T, Alloc> &vec)
QDebug | operator<<(QDebug debug, const std::map<Key, T, Compare, Alloc> &map)
QDebug | operator<<(QDebug debug, const std::multimap<Key, T, Compare, Alloc> &map)
QDebug | operator<<(QDebug debug, const QSharedPointer<T> &ptr)

Class QDataStream:

void | abortTransaction()
bool | commitTransaction()
void | rollbackTransaction()
void | startTransaction()

Class QDate:

QDebug | operator<<(QDebug debug, const std::vector<T, Alloc> &vec)
QDebug | operator<<(QDebug debug, const std::list<T, Alloc> &vec)
QDebug | operator<<(QDebug debug, const std::map<Key, T, Compare, Alloc> &map)
QDebug | operator<<(QDebug debug, const std::multimap<Key, T, Compare, Alloc> &map)
QDebug | operator<<(QDebug debug, const QSharedPointer<T> &ptr)

Class QDateTime:

QDebug | operator<<(QDebug debug, const std::vector<T, Alloc> &vec)
QDebug | operator<<(QDebug debug, const std::list<T, Alloc> &vec)
QDebug | operator<<(QDebug debug, const std::map<Key, T, Compare, Alloc> &map)
QDebug | operator<<(QDebug debug, const std::multimap<Key, T, Compare, Alloc> &map)
QDebug | operator<<(QDebug debug, const QSharedPointer<T> &ptr)

Class QFlags:

QFlags<T> & | setFlag(Enum flag, bool on)

Class QHash:

QPair<iterator, iterator> | equal_range(const Key &key)
QPair<const_iterator, const_iterator> | equal_range(const Key &key) const
iterator | erase(const_iterator pos)

Class QIODevice:

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

Class QJsonObject:

const_iterator | constFind(QLatin1String key) const
bool | contains(QLatin1String key) const
iterator | find(QLatin1String key)
const_iterator | find(QLatin1String key) const
QJsonValue | operator[](QLatin1String key) const
QJsonValueRef | operator[](QLatin1String key)
QJsonValue | value(QLatin1String key) const

Class QLocale:

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

Class QMetaObject:

bool | inherits(const QMetaObject *metaObject) const

Class QMutex:

bool | isRecursive() const

Class QPair:

QDebug | operator<<(QDebug debug, const std::vector<T, Alloc> &vec)
QDebug | operator<<(QDebug debug, const std::list<T, Alloc> &vec)
QDebug | operator<<(QDebug debug, const std::map<Key, T, Compare, Alloc> &map)
QDebug | operator<<(QDebug debug, const std::multimap<Key, T, Compare, Alloc> &map)
QDebug | operator<<(QDebug debug, const QSharedPointer<T> &ptr)

Class QProcess:

CreateProcessArgumentModifier | createProcessArgumentsModifier() const
void | setCreateProcessArgumentsModifier(CreateProcessArgumentModifier modifier)

Class QRect:

QRect | transposed() const

Class QRectF:

QRectF | transposed() const

Class QRegExp:

QDebug | operator<<(QDebug debug, const std::vector<T, Alloc> &vec)
QDebug | operator<<(QDebug debug, const std::list<T, Alloc> &vec)
QDebug | operator<<(QDebug debug, const std::map<Key, T, Compare, Alloc> &map)
QDebug | operator<<(QDebug debug, const std::multimap<Key, T, Compare, Alloc> &map)
QDebug | operator<<(QDebug debug, const QSharedPointer<T> &ptr)

Class QSet:

iterator | erase(const_iterator pos)

Class QSharedPointer:

QDebug | operator<<(QDebug debug, const QSharedPointer<T> &ptr)

Class QString:

QDebug | operator<<(QDebug debug, const std::vector<T, Alloc> &vec)
QDebug | operator<<(QDebug debug, const std::list<T, Alloc> &vec)
QDebug | operator<<(QDebug debug, const std::map<Key, T, Compare, Alloc> &map)
QDebug | operator<<(QDebug debug, const std::multimap<Key, T, Compare, Alloc> &map)
QDebug | operator<<(QDebug debug, const QSharedPointer<T> &ptr)
void | resize(int size, QChar fillChar)

Class QStringRef:

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

Class QStringView:

uint | qHash(const std::pair<T1, T2> &key, uint seed)

Class QTime:

QDebug | operator<<(QDebug debug, const std::vector<T, Alloc> &vec)
QDebug | operator<<(QDebug debug, const std::list<T, Alloc> &vec)
QDebug | operator<<(QDebug debug, const std::map<Key, T, Compare, Alloc> &map)
QDebug | operator<<(QDebug debug, const std::multimap<Key, T, Compare, Alloc> &map)
QDebug | operator<<(QDebug debug, const QSharedPointer<T> &ptr)

Class QUtf8:

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

Class QUuid:

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

Class QCursor:

void | swap(QCursor &other)

Class QDrag:

void | cancel()

Class QIconEngine:

bool | isNull() const

Class QOpenGLFramebufferObject:

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

Class Key:

bool | isValid() const

Class QPlatformDrag:

virtual void | cancelDrag()

Class QPlatformIntegration:

virtual void | beep() const

Class QWheelEvent:

bool | inverted() const

Class QMediaPlaylist:

bool | moveMedia(int from, int to)

Class QMediaPlaylistProvider:

virtual bool | moveMedia(int from, int to)

Class QNetworkInterface:

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

Class QSslConfiguration:

QSslKey | ephemeralServerKey() const

Class QWindowsWindowFunctions:

void | setWindowActivationBehavior(int behavior)
const int | setWindowActivationBehaviorIdentifier()

Class QQmlDebuggingEnabler:

bool | startDebugConnector(const QString &pluginName, const QVariantHash &configuration)

Class QQmlFileSelector:

QFileSelector * | selector() const

Class QQuickItem:

bool | isAncestorOf(const QQuickItem *child) const
QPointF | mapFromGlobal(const QPointF &point) const
QPointF | mapToGlobal(const QPointF &point) const

### New Global Functions

QDebug | operator<<(QDebug debug, const QSharedPointer<T> &ptr)
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 std::vector<T, Alloc> &vec)
void | qAsConst(const T &&t)
typename std::add_const<T>::type & | qAsConst(T &t)
void | qAsConst(const T &&t)
typename std::add_const<T>::type & | qAsConst(T &t)
auto | qConstOverload(T memberFunctionPointer)
auto | qConstOverload(T memberFunctionPointer)
uint | qHash(const std::pair<T1, T2> &key, uint seed)
auto | qNonConstOverload(T memberFunctionPointer)
auto | qNonConstOverload(T memberFunctionPointer)
auto | qOverload(T functionPointer)
auto | qOverload(T functionPointer)

### New Macros

const wchar_t * | qUtf16Printable(const QString &str)
const wchar_t * | qUtf16Printable(const QString &str)

### New Enum Types

enum | AttAccessConstraint { AttAuthorizationRequired, AttAuthenticationRequired, AttEncryptionRequired }
enum | FloatingPointPrecisionOption { FloatingPointShortest }
enum | Role { CentralRole, PeripheralRole }
enum | FramebufferRestorePolicy { DontRestoreFramebufferBinding, RestoreFramebufferBindingToDefault, RestoreFrameBufferBinding }

### New Type Aliases

typedef | const_reverse_iterator
typedef | SetWindowActivationBehaviorType

### New Properties

- desktopFileName : const

### New QML Types

A
  AbstractActionInput
  AbstractButton
  Action
  ActionInput
  AlphaCoverage
  AlphaTest
  AnalogAxisInput
  ApplicationWindow
  Axis

B
  BusyIndicator
  Button
  ButtonAxisInput
  ButtonGroup

C
  CheckBox
  CheckDelegate
  ClearBuffers
  ColorMask
  ComboBox
  ComputeCommand
  Container
  Control
  CullFace

D
  DepthTest
  Dial
  DiffuseMapMaterial
  DiffuseSpecularMapMaterial
  DirectionalLight
  DispatchCompute
  Dithering
  Drawer

E
  Effect

F
  FirstPersonCameraController
  ForwardRenderer
  Frame
  FrontFace
  FrustumCulling

G
  Geometry
  GeometryRenderer
  GoochMaterial
  GroupBox

I
  InputChord
  InputSequence
  InputSettings
  ItemDelegate

L
  Label

M
  Menu
  MenuItem
  MultiSampleAntiAliasing

N
  NoDepthMask
  NormalDiffuseMapAlphaMaterial
  NormalDiffuseMapMaterial
  NormalDiffuseSpecularMapMaterial

O
  OrbitCameraController

P
  Page
  PageIndicator
  Pane
  PerVertexColorMaterial
  PhongAlphaMaterial
  PhongMaterial
  PickingSettings
  PointSize
  PolygonOffset
  Popup
  ProgressBar

R
  RadioButton
  RadioDelegate
  RangeSlider
  RenderPass
  RenderPassFilter
  RenderSettings
  RenderState
  RenderSurfaceSelector
  RenderTarget
  RenderTargetOutput
  RenderTargetSelector

S
  SceneLoader
  ScissorTest
  ScrollBar
  ScrollIndicator
  ScxmlStateMachine
  SeamlessCubemap
  Slider
  SortPolicy
  SpinBox
  StackView
  StencilMask
  StencilOperation
  StencilOperationArguments
  StencilTest
  StencilTestArguments
  SwipeDelegate
  SwipeView
  Switch
  SwitchDelegate

T
  TabBar
  TabButton
  Technique
  TechniqueFilter
  TextArea
  TextField
  ToolBar
  ToolButton
  ToolTip
  Tumbler

V
  Viewport

### New QML Properties

| brightness
| caseSensitive
| copyrightsVisible
| enabled
| invert
| keyNavigationEnabled
| keyNavigationEnabled
| movementDirection
| preeditText
| preeditText
| source
| window

### New QML Methods

| addItems()
| clear()
| clear()
| insertItems()
| mapFromGlobal()
| mapToGlobal()
| moveItem()
| removeItems()

## 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