Qt 5.7 | New Classes and Functions in Qt 5.7

Qt 5.7.1 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 Typedefs
- New Properties
- New QML Types
- New QML Properties
- New QML Methods

### New Classes

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

B
  QButtonAxisInput (Qt3DInput)
  QBlendEquation (Qt3DRender)

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

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

E
  QEffect (Qt3DRender)

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

G
  QGoochMaterial (Qt3DExtras)

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

L
  QLowEnergyAdvertisingData
  QLowEnergyAdvertisingParameters
  QLowEnergyCharacteristicData
  QLowEnergyConnectionParameters
  QLowEnergyDescriptorData
  QLowEnergyServiceData
  Loader (QScxmlParser)
  QLogicAspect (Qt3DLogic)

M
  QModbusDeviceIdentification

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

O
  QOrbitCameraController (Qt3DExtras)

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

Q
  QQuickStyle

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

S
  QScxmlCppDataModel
  QScxmlDataModel
  QScxmlEcmaScriptDataModel
  QScxmlError
  QScxmlEvent
  QScxmlEventFilter
  QScxmlNullDataModel
  QScxmlParser
  QScxmlStateMachine
  QStaticPropertyUpdatedChangeBase (Qt3DCore)
  QStaticPropertyValueAddedChangeBase (Qt3DCore)
  QStaticPropertyValueRemovedChangeBase (Qt3DCore)
  QSphereGeometry (Qt3DExtras)
  QSceneLoader (Qt3DRender)
  QSeamlessCubemap (Qt3DRender)
  QSortPolicy (Qt3DRender)
  QStencilTest (Qt3DRender)

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

V
  QViewport (Qt3DRender)

### New Member Functions

Class QBluetoothUuid:

| operator!=(const QBluetoothUuid &other) const

Class QLowEnergyController:

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

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 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 QWheelEvent:

| inverted() const

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 QMediaPlaylist:

| moveMedia(int from, int to)

Class QMediaPlaylistProvider:

virtual | moveMedia(int from, int to)

Class QNetworkInterface:

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

Class QSslConfiguration:

| ephemeralServerKey() const

Class QWindowsWindowFunctions:

| setWindowActivationBehavior(WindowActivationBehavior behavior)
| setWindowActivationBehaviorIdentifier()

Class QQmlDebuggingEnabler:

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

Class QQmlFileSelector:

| selector() const

Class QQuickItem:

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

Class QModbusRtuSerialMaster:

| interFrameDelay() const
| setInterFrameDelay(int microseconds)

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 | AttAccessConstraint { AttAuthorizationRequired, AttAuthenticationRequired, AttEncryptionRequired }
enum | FloatingPointPrecisionOption { FloatingPointShortest }
enum | Role { CentralRole, PeripheralRole }
enum | FramebufferRestorePolicy { DontRestoreFramebufferBinding, RestoreFramebufferBindingToDefault, RestoreFrameBufferBinding }
enum | WindowActivationBehavior { DefaultActivateWindow, AlwaysActivateWindow }

### New Typedefs

typedef | const_reverse_iterator
typedef | SetWindowActivationBehaviorType

### New Properties

- desktopFileName : const

### New QML Types

A
  AbstractActionInput
  AbstractButton
  Action
  ActionInput
  AnalogAxisInput
  ApplicationWindow
  Axis

B
  BusyIndicator
  Button
  ButtonAxisInput
  ButtonGroup

C
  CheckBox
  CheckDelegate
  ClearBuffers
  ComboBox
  Container
  Control

D
  Dial
  DiffuseMapMaterial
  DiffuseSpecularMapMaterial
  DirectionalLight
  DispatchCompute
  Drawer

E
  Effect

F
  FirstPersonCameraController
  ForwardRenderer
  Frame
  FrustumCulling

G
  GoochMaterial
  GroupBox

I
  InputChord
  InputSequence
  InputSettings
  ItemDelegate

L
  Label

M
  Menu
  MenuItem

N
  NormalDiffuseMapAlphaMaterial
  NormalDiffuseMapMaterial
  NormalDiffuseSpecularMapMaterial

O
  OrbitCameraController

P
  Page
  PageIndicator
  Pane
  PerVertexColorMaterial
  PhongAlphaMaterial
  PhongMaterial
  PickingSettings
  Popup
  ProgressBar

R
  RadioButton
  RadioDelegate
  RangeSlider
  RenderPass
  RenderSettings
  RenderSurfaceSelector
  RenderTargetSelector

S
  SceneLoader
  ScrollBar
  ScrollIndicator
  Slider
  SortPolicy
  SpinBox
  StackView
  SwipeDelegate
  SwipeView
  Switch
  SwitchDelegate

T
  TabBar
  TabButton
  Technique
  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()
| insertItems()
| moveItem()
| removeItems()
| clear()
| clear()

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