QCameraViewfinderSettingsControl

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

Inheritance diagram of PySide2.QtMultimedia.QCameraViewfinderSettingsControl

Detailed Description

The interface name of QCameraViewfinderSettingsControl is org.qt-project.qt.cameraviewfindersettingscontrol/5.0 as defined in QCameraViewfinderSettingsControl_iid .

Warning

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

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

PySide2.QtCore.QObject

Constructs a camera viewfinder control object with parent .

PySide2.QtMultimedia.QCameraViewfinderSettingsControl.ViewfinderParameter

Constant

Description

QCameraViewfinderSettingsControl.Resolution

Viewfinder resolution, QSize .

QCameraViewfinderSettingsControl.PixelAspectRatio

Pixel aspect ratio, QSize as in pixelAspectRatio

QCameraViewfinderSettingsControl.MinimumFrameRate

Minimum viewfinder frame rate, qreal

QCameraViewfinderSettingsControl.MaximumFrameRate

Maximum viewfinder frame rate, qreal

QCameraViewfinderSettingsControl.PixelFormat

Viewfinder pixel format, PixelFormat

QCameraViewfinderSettingsControl.UserParameter

The base value for platform specific extended parameters. For such parameters the sequential values starting from should be used.

PySide2.QtMultimedia.QCameraViewfinderSettingsControl.isViewfinderParameterSupported(parameter)
Parameters

parameterViewfinderParameter

Return type

bool

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

PySide2.QtMultimedia.QCameraViewfinderSettingsControl.setViewfinderParameter(parameter, value)
Parameters

Set the prefferred value of viewfinder parameter .

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.

PySide2.QtMultimedia.QCameraViewfinderSettingsControl.viewfinderParameter(parameter)
Parameters

parameterViewfinderParameter

Return type

object

Returns the value of viewfinder parameter .