Qt 5.13 | New Classes and Functions in Qt 5.7

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

### New Member Functions

Class QUtf8:

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

Class QStringRef:

QStringRef::const_reverse_iterator | crbegin() const
QStringRef::const_reverse_iterator | crend() const
QChar | operator[](int position) const
QStringRef::const_reverse_iterator | rbegin() const
QStringRef::const_reverse_iterator | rend() 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 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 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 QHash:

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

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

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

Class QSet:

QSet::iterator | erase(QSet::const_iterator pos)

Class QSharedPointer:

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

Class QUuid:

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

Class QDataStream:

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

Class QJsonObject:

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

Class QProcess:

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

Class QRect:

QRect | transposed() const

Class QRectF:

QRectF | transposed() const

Class QFlags:

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

Class QBasicMutex:

bool | isRecursive() const

Class QMutex:

bool | isRecursive() const

Class QMetaObject:

bool | inherits(const QMetaObject *metaObject) const

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

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

Class QPlatformDrag:

virtual void | cancelDrag()

Class QWheelEvent:

bool | inverted() const

Class QPlatformIntegration:

virtual void | beep() const

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, QOpenGLFramebufferObject::FramebufferRestorePolicy restorePolicy)

Class Key:

bool | isValid() const

Class QNetworkInterface:

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

Class QSslConfiguration:

QSslKey | ephemeralServerKey() const

Class QWindowsWindowFunctions:

void | setWindowActivationBehavior(QWindowsWindowFunctions::WindowActivationBehavior behavior)
const QByteArray | setWindowActivationBehaviorIdentifier()

Class QMenu:

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

### 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 | FloatingPointPrecisionOption { FloatingPointShortest }
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
  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