Qt 5.9 | New Classes and Functions in Qt 5.7

Qt 5.9.9 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)
  QAlphaTest (Qt3DRender)

B
  QButtonAxisInput (Qt3DInput)
  QBlendEquation (Qt3DRender)

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

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

E
  QEffect (Qt3DRender)

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

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

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

L
  QLowEnergyAdvertisingData
  QLowEnergyAdvertisingParameters
  QLowEnergyCharacteristicData
  QLowEnergyConnectionParameters
  QLowEnergyDescriptorData
  QLowEnergyServiceData
  QLogicAspect (Qt3DLogic)

M
  QMorphPhongMaterial (Qt3DExtras)
  QMultiSampleAntiAliasing (Qt3DRender)

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

O
  QOrbitCameraController (Qt3DExtras)

P
  QPerVertexColorMaterial (Qt3DExtras)
  QPhongAlphaMaterial (Qt3DExtras)
  QPhongMaterial (Qt3DExtras)
  QPlaneGeometry (Qt3DExtras)
  QPickEvent (Qt3DRender)
  QPickTriangleEvent (Qt3DRender)
  QPickingSettings (Qt3DRender)
  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
  QScxmlCompiler
  QScxmlCppDataModel
  QScxmlDataModel
  QScxmlEcmaScriptDataModel
  QScxmlError
  QScxmlEvent
  QScxmlNullDataModel
  QScxmlStateMachine
  QStaticPropertyUpdatedChangeBase (Qt3DCore)
  QStaticPropertyValueAddedChangeBase (Qt3DCore)
  QStaticPropertyValueRemovedChangeBase (Qt3DCore)
  QSphereGeometry (Qt3DExtras)
  QSceneLoader (Qt3DRender)
  QScissorTest (Qt3DRender)
  QSeamlessCubemap (Qt3DRender)
  QSortPolicy (Qt3DRender)
  QStencilMask (Qt3DRender)
  QStencilOperation (Qt3DRender)
  QStencilOperationArguments (Qt3DRender)
  QStencilTest (Qt3DRender)
  QStencilTestArguments (Qt3DRender)

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

V
  QViewport (Qt3DRender)

W
  QWebEngineContextMenuData

### New Member Functions

Class QMenu:

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

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

| isNull() const

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

| clearHttpCache()

Class QWebEngineDownloadItem:

| savePageFormat() const
| setSavePageFormat(SavePageFormat format)

Class QWebEnginePage:

| audioMutedChanged(bool muted)
| contextMenuData() const
| iconChanged(const QIcon &icon)
| printToPdf(FunctorOrLambda resultCallback, const QPageLayout &pageLayout)
| printToPdf(const QString &filePath, const QPageLayout &pageLayout)
| recentlyAudibleChanged(bool recentlyAudible)
| runJavaScript(const QString &scriptSource, quint32 worldId)
| runJavaScript(const QString &scriptSource, quint32 worldId, FunctorOrLambda resultCallback)
| setWebChannel(QWebChannel *channel, uint worldId)

Class QWebEngineProfile:

| clearHttpCache()

Class QWebEngineView:

| iconChanged(const QIcon &icon)

### 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 | SavePageFormat { UnknownSaveFormat, SingleHtmlSaveFormat, CompleteHtmlSaveFormat, MimeHtmlSaveFormat }
enum | WindowActivationBehavior { DefaultActivateWindow, AlwaysActivateWindow }

### New Typedefs

typedef | const_reverse_iterator
typedef | SetWindowActivationBehaviorType

### New Properties

desktopFileName : const audioMuted : const audioMuted : const contentsSize : const | icon : const recentlyAudible : const scrollPosition : const icon : 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

| mapFromGlobal()
| mapToGlobal()
| 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