IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QCameraZoomControl Class

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

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QCameraZoomControl Class

  • Header: QCameraZoomControl

  • qmake: QT += multimedia

  • Inherits: QMediaControl

  • Inherited By:

  • Group: QCameraZoomControl is part of multimedia_control

Detailed Description

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

See Also

Member Function Documentation

 

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

Constructs a camera zoom control object with parent.

[virtual] QCameraZoomControl::~QCameraZoomControl()

Destruct the camera zoom control object.

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

Return the current digital zoom value.

void QCameraZoomControl::currentDigitalZoomChanged(qreal zoom)

Signal emitted when the current digital zoom value changed.

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

Return the current optical zoom value.

void QCameraZoomControl::currentOpticalZoomChanged(qreal zoom)

Signal emitted when the current optical zoom value changed.

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

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

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.

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

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

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.

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

Return the requested digital zoom value.

void QCameraZoomControl::requestedDigitalZoomChanged(qreal zoom)

Signal emitted when the requested digital zoom value changed.

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

Return the requested optical zoom value.

void QCameraZoomControl::requestedOpticalZoomChanged(qreal zoom)

Signal emitted when the requested optical zoom value changed.

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

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 zoomTo() calls during zoom animations or slider movements.

Macro Documentation

 

QCameraZoomControl_iid

org.qt-project.qt.camerazoomcontrol/5.0

Defines the interface name of the QCameraZoomControl class.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+