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.

新类

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 )

新成员函数

QAndroidJniObject :

fromLocalRef (int localRef )

QBluetoothUuid :

operator!= (const QBluetoothUuid & other ) const

QLowEnergyController :

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

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

QProcess :

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

QBasicMutex :

isRecursive () const

QByteArray :

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

QDataStream :

abortTransaction ()
commitTransaction ()
rollbackTransaction ()
startTransaction ()

QHash :

equal_range (const Key & key )
equal_range (const Key & key ) const
erase (QHash::const_iterator pos )

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

QLocale :

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

QMetaObject :

inherits (const QMetaObject * metaObject ) const

QMutex :

isRecursive () const

QRect :

transposed () const

QRectF :

transposed () const

QSet :

erase (QSet::const_iterator pos )

QString :

resize (int size , QChar fillChar )

QStringRef :

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

QUtf8 :

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

QUuid :

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

QFlags :

setFlag (Enum flag , bool on )

QDrag :

cancel ()

QIconEngine :

isNull () const

QOpenGLFramebufferObject :

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

Key :

isValid () const

QWheelEvent :

inverted () const

QPlatformDrag :

virtual cancelDrag ()

QPlatformIntegration :

virtual beep () const

QMediaPlaylist :

moveMedia (int from , int to )

QMediaPlaylistProvider :

virtual moveMedia (int from , int to )

QNetworkInterface :

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

QSslConfiguration :

ephemeralServerKey () const

QWindowsWindowFunctions :

setWindowActivationBehavior (QWindowsWindowFunctions::WindowActivationBehavior behavior )
setWindowActivationBehaviorIdentifier ()

QQmlDebuggingEnabler :

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

QQmlFileSelector :

选择器 () const

QQuickItem :

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

QQuickWebEngineProfile :

clearHttpCache ()

QMenu :

showTearOffMenu ()
showTearOffMenu (const QPoint & pos )

QX11Info :

isCompositingManagerRunning (int screen )

名称空间中的新函数

androidService ()
hideSplashScreen ()
runOnAndroidThread (const QtAndroid::Runnable & runnable )
runOnAndroidThreadSync (const QtAndroid::Runnable & runnable , int timeoutMs )

新全局函数

operator<< (QDebug debug , const std::vector<T, Alloc> & vec )
operator<< (QDebug debug , const std::multimap<Key, T, Compare, Alloc> & map )
operator<< (QDebug debug , const std::map<Key, T, Compare, Alloc> & map )
operator<< (QDebug debug , const std::list<T, Alloc> & vec )
operator<< (QDebug debug , const QSharedPointer<T> & ptr )
qAsConst (const T && t )
qAsConst (T & t )
qConstOverload (T memberFunctionPointer )
qHash (const std::pair<T1, T2> & key , uint seed )
qNonConstOverload (T memberFunctionPointer )
qOverload (T functionPointer )

新宏

qUtf16Printable (const QString & str )

新枚举类型

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

新的 Typedef

typedef const_reverse_iterator
typedef SetWindowActivationBehaviorType

新特性

新 QML 类型

A
AbstractActionInput
AbstractButton
动作
ActionInput
AlphaCoverage
AlphaTest
AnalogAxisInput
ApplicationWindow
Axis
B
BusyIndicator
Button
ButtonAxisInput
ButtonGroup
C
CheckBox
CheckDelegate
ClearBuffers
ColorMask
ComboBox
ComputeCommand
容器
Control
CullFace
D
DepthTest
Dial
DiffuseMapMaterial
DiffuseSpecularMapMaterial
DirectionalLight
DispatchCompute
Dithering
Drawer
E
Effect
F
FirstPersonCameraController
ForwardRenderer
Frame
FrontFace
FrustumCulling
G
几何体
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

新 QML 特性

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

新 QML 方法

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

其它 Qt 5 发行的补充