QCameraViewfinderSettings

PyQt5.QtMultimedia.QCameraViewfinderSettings

Description

The QCameraViewfinderSettings class provides a set of viewfinder settings.

A viewfinder settings object is used to specify the viewfinder settings used by QCamera. Viewfinder settings are selected by constructing a QCameraViewfinderSettings object, setting the desired properties and then passing it to a QCamera instance using the setViewfinderSettings() function.

#     QCameraViewfinderSettings viewfinderSettings;
#     viewfinderSettings.setResolution(640, 480);
#     viewfinderSettings.setMinimumFrameRate(15.0);
#     viewfinderSettings.setMaximumFrameRate(30.0);

#     camera->setViewfinderSettings(viewfinderSettings);

Different cameras may have different capabilities. The application should query the camera capabilities before setting parameters. For example, the application should call supportedViewfinderResolutions() before calling setResolution().

See also

QCamera.

Methods

__init__()

Constructs a null viewfinder settings object.


__init__(QCameraViewfinderSettings)

Constructs a copy of the viewfinder settings object other.


__eq__(QCameraViewfinderSettings) → bool

TODO


isNull() → bool

TODO


maximumFrameRate() → float

minimumFrameRate() → float

__ne__(QCameraViewfinderSettings) → bool

TODO


pixelAspectRatio() → QSize

pixelFormat() → PixelFormat

See also

setPixelFormat().


resolution() → QSize

See also

setResolution().


setMaximumFrameRate(float)

See also

maximumFrameRate().


setMinimumFrameRate(float)

See also

minimumFrameRate().


setPixelAspectRatio(QSize)

See also

pixelAspectRatio().


setPixelAspectRatio(int, int)

TODO


setPixelFormat(PixelFormat)

See also

pixelFormat().


setResolution(QSize)

See also

resolution().


setResolution(int, int)

TODO


swap(QCameraViewfinderSettings)

TODO