QCameraZoomControl Class

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

头: #include <QCameraZoomControl>
qmake: QT += multimedia
继承: QMediaControl

该类已过时。 提供它是为使旧源代码能继续工作。强烈建议不要在新代码中使用它。

公共函数

virtual ~QCameraZoomControl ()
virtual qreal currentDigitalZoom () const = 0
virtual qreal currentOpticalZoom () const = 0
virtual qreal maximumDigitalZoom () const = 0
virtual qreal maximumOpticalZoom () const = 0
virtual qreal requestedDigitalZoom () const = 0
virtual qreal requestedOpticalZoom () const = 0
virtual void zoomTo (qreal optical , qreal digital ) = 0

信号

void currentDigitalZoomChanged (qreal zoom )
void currentOpticalZoomChanged (qreal zoom )
void maximumDigitalZoomChanged (qreal zoom )
void maximumOpticalZoomChanged (qreal zoom )
void requestedDigitalZoomChanged (qreal zoom )
void requestedOpticalZoomChanged (qreal zoom )

保护函数

QCameraZoomControl (QObject * parent = nullptr)

QCameraZoomControl_iid

详细描述

The interface name of QCameraZoomControl is org.qt-project.qt.camerazoomcontrol/5.0 作为定义在 QCameraZoomControl_iid .

另请参阅 QMediaService::requestControl () 和 QCamera .

成员函数文档编制

[protected] QCameraZoomControl:: QCameraZoomControl ( QObject * parent = nullptr)

Constructs a camera zoom control object with parent .

[signal] void QCameraZoomControl:: currentDigitalZoomChanged ( qreal zoom )

Signal emitted when the current digital zoom value changed.

[signal] void QCameraZoomControl:: currentOpticalZoomChanged ( qreal zoom )

Signal emitted when the current optical zoom value changed.

[signal] void QCameraZoomControl:: maximumDigitalZoomChanged ( qreal zoom )

Signal emitted when the maximum supported digital zoom value changed.

The maximum supported zoom value can depend on other camera settings, like capture mode or resolution.

[signal] void QCameraZoomControl:: maximumOpticalZoomChanged ( qreal zoom )

Signal emitted when the maximum supported optical zoom value changed.

The maximum supported zoom value can depend on other camera settings, like focusing mode.

[signal] void QCameraZoomControl:: requestedDigitalZoomChanged ( qreal zoom )

Signal emitted when the requested digital zoom value changed.

[signal] void QCameraZoomControl:: requestedOpticalZoomChanged ( qreal zoom )

Signal emitted when the requested optical zoom value changed.

[虚拟] QCameraZoomControl:: ~QCameraZoomControl ()

Destruct the camera zoom control object.

[pure virtual] qreal QCameraZoomControl:: currentDigitalZoom () const

Return the current digital zoom value.

[pure virtual] qreal QCameraZoomControl:: currentOpticalZoom () const

Return the current optical zoom value.

[pure virtual] qreal QCameraZoomControl:: maximumDigitalZoom () const

Returns the maximum digital zoom value, or 1.0 if digital zoom is not supported.

[pure virtual] qreal QCameraZoomControl:: maximumOpticalZoom () const

Returns the maximum optical zoom value, or 1.0 if optical zoom is not supported.

[pure virtual] qreal QCameraZoomControl:: requestedDigitalZoom () const

Return the requested digital zoom value.

[pure virtual] qreal QCameraZoomControl:: requestedOpticalZoom () const

Return the requested optical zoom value.

[pure virtual] void QCameraZoomControl:: zoomTo ( qreal optical , qreal digital )

设置 optical and digital 缩放值。

Zooming can be asynchronous with value changes reported with currentDigitalZoomChanged () 和 currentOpticalZoomChanged () 信号。

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

宏文档编制

QCameraZoomControl_iid

org.qt-project.qt.camerazoomcontrol/5.0

定义接口名为 QCameraZoomControl 类。