QCameraViewfinderSettingsControl Class

The QCameraViewfinderSettingsControl class provides an abstract class for controlling camera viewfinder parameters. 更多...

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

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

公共类型

enum ViewfinderParameter { Resolution, PixelAspectRatio, MinimumFrameRate, MaximumFrameRate, PixelFormat, UserParameter }

公共函数

virtual ~QCameraViewfinderSettingsControl ()
virtual bool isViewfinderParameterSupported (QCameraViewfinderSettingsControl::ViewfinderParameter 参数 ) const = 0
virtual void setViewfinderParameter (QCameraViewfinderSettingsControl::ViewfinderParameter 参数 , const QVariant & value ) = 0
virtual QVariant viewfinderParameter (QCameraViewfinderSettingsControl::ViewfinderParameter 参数 ) const = 0

保护函数

QCameraViewfinderSettingsControl (QObject * parent = nullptr)

QCameraViewfinderSettingsControl_iid

详细描述

The interface name of QCameraViewfinderSettingsControl is org.qt-project.qt.cameraviewfindersettingscontrol/5.0 作为定义在 QCameraViewfinderSettingsControl_iid .

警告: New backends should implement QCameraViewfinderSettingsControl2 instead. Application developers should request this control only if QCameraViewfinderSettingsControl2 is not available.

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

成员类型文档编制

enum QCameraViewfinderSettingsControl:: ViewfinderParameter

常量 描述
QCameraViewfinderSettingsControl::Resolution 0 Viewfinder resolution, QSize .
QCameraViewfinderSettingsControl::PixelAspectRatio 1 Pixel aspect ratio, QSize as in QVideoSurfaceFormat::pixelAspectRatio
QCameraViewfinderSettingsControl::MinimumFrameRate 2 Minimum viewfinder frame rate, qreal
QCameraViewfinderSettingsControl::MaximumFrameRate 3 Maximum viewfinder frame rate, qreal
QCameraViewfinderSettingsControl::PixelFormat 4 Viewfinder pixel format, QVideoFrame::PixelFormat
QCameraViewfinderSettingsControl::UserParameter 1000 The base value for platform specific extended parameters. For such parameters the sequential values starting from UserParameter should be used.

成员函数文档编制

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

Constructs a camera viewfinder control object with parent .

[虚拟] QCameraViewfinderSettingsControl:: ~QCameraViewfinderSettingsControl ()

Destroys the camera viewfinder control object.

[pure virtual] bool QCameraViewfinderSettingsControl:: isViewfinderParameterSupported ( QCameraViewfinderSettingsControl::ViewfinderParameter 参数 ) const

Returns true if configuration of viewfinder 参数 is supported by camera backend.

[pure virtual] void QCameraViewfinderSettingsControl:: setViewfinderParameter ( QCameraViewfinderSettingsControl::ViewfinderParameter 参数 , const QVariant & value )

Set the prefferred value of viewfinder 参数 .

Calling this while the camera is active may result in the camera being stopped and reloaded. If video recording is in progress, this call may be ignored.

If an unsupported parameter is specified the camera may fail to load, or the setting may be ignored.

Viewfinder parameters may also depend on other camera settings, especially in video capture mode. If camera configuration conflicts with viewfinder settings, the camara configuration is usually preferred.

另请参阅 viewfinderParameter ().

[pure virtual] QVariant QCameraViewfinderSettingsControl:: viewfinderParameter ( QCameraViewfinderSettingsControl::ViewfinderParameter 参数 ) const

Returns the value of viewfinder 参数 .

另请参阅 setViewfinderParameter ().

宏文档编制

QCameraViewfinderSettingsControl_iid

org.qt-project.qt.cameraviewfindersettingscontrol/5.0

定义接口名为 QCameraViewfinderSettingsControl 类。