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
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
See also
- minimumFrameRate() → float
See also
- __ne__(QCameraViewfinderSettings) → bool
TODO
- pixelAspectRatio() → QSize
See also
- pixelFormat() → PixelFormat
See also
- resolution() → QSize
See also
- setMaximumFrameRate(float)
See also
- setMinimumFrameRate(float)
See also
- setPixelAspectRatio(QSize)
See also
- setPixelAspectRatio(int, int)
TODO
- setPixelFormat(PixelFormat)
See also
- setResolution(QSize)
See also
- setResolution(int, int)
TODO
- swap(QCameraViewfinderSettings)
TODO