QCameraZoomControl¶
The
QCameraZoomControl
class supplies control for optical and digital camera zoom. More…
Detailed Description¶
The interface name of
QCameraZoomControl
isorg.qt-project.qt.camerazoomcontrol/5.0
as defined inQCameraZoomControl_iid
.See also
- class PySide2.QtMultimedia.QCameraZoomControl([parent=None])¶
- param parent:
Constructs a camera zoom control object with
parent
.
- PySide2.QtMultimedia.QCameraZoomControl.currentDigitalZoom()¶
- Return type:
float
Return the current digital zoom value.
- PySide2.QtMultimedia.QCameraZoomControl.currentDigitalZoomChanged(digitalZoom)¶
- Parameters:
digitalZoom – float
- PySide2.QtMultimedia.QCameraZoomControl.currentOpticalZoom()¶
- Return type:
float
Return the current optical zoom value.
- PySide2.QtMultimedia.QCameraZoomControl.currentOpticalZoomChanged(opticalZoom)¶
- Parameters:
opticalZoom – float
- PySide2.QtMultimedia.QCameraZoomControl.maximumDigitalZoom()¶
- Return type:
float
Returns the maximum digital zoom value, or 1.0 if digital zoom is not supported.
- PySide2.QtMultimedia.QCameraZoomControl.maximumDigitalZoomChanged(arg__1)¶
- Parameters:
arg__1 – float
- PySide2.QtMultimedia.QCameraZoomControl.maximumOpticalZoom()¶
- Return type:
float
Returns the maximum optical zoom value, or 1.0 if optical zoom is not supported.
- PySide2.QtMultimedia.QCameraZoomControl.maximumOpticalZoomChanged(arg__1)¶
- Parameters:
arg__1 – float
- PySide2.QtMultimedia.QCameraZoomControl.requestedDigitalZoom()¶
- Return type:
float
Return the requested digital zoom value.
- PySide2.QtMultimedia.QCameraZoomControl.requestedDigitalZoomChanged(digitalZoom)¶
- Parameters:
digitalZoom – float
- PySide2.QtMultimedia.QCameraZoomControl.requestedOpticalZoom()¶
- Return type:
float
Return the requested optical zoom value.
- PySide2.QtMultimedia.QCameraZoomControl.requestedOpticalZoomChanged(opticalZoom)¶
- Parameters:
opticalZoom – float
- PySide2.QtMultimedia.QCameraZoomControl.zoomTo(optical, digital)¶
- Parameters:
optical – float
digital – float
Sets
optical
anddigital
zoom values.Zooming can be asynchronous with value changes reported with
currentDigitalZoomChanged()
andcurrentOpticalZoomChanged()
signals.The backend should expect and correctly handle frequent calls during zoom animations or slider movements.
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.