QCameraZoomControl

The QCameraZoomControl class supplies control for optical and digital camera zoom. More

Inheritance diagram of PySide2.QtMultimedia.QCameraZoomControl

Detailed Description

The interface name of QCameraZoomControl is org.qt-project.qt.camerazoomcontrol/5.0 as defined in QCameraZoomControl_iid .

class PySide2.QtMultimedia.QCameraZoomControl([parent=None])
param parent

PySide2.QtCore.QObject

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 and digital zoom values.

Zooming can be asynchronous with value changes reported with currentDigitalZoomChanged() and currentOpticalZoomChanged() signals.

The backend should expect and correctly handle frequent calls during zoom animations or slider movements.