QCameraViewfinderSettingsControl¶
The
QCameraViewfinderSettingsControl
class provides an abstract class for controlling camera viewfinder parameters. More…
Detailed Description¶
The interface name of
QCameraViewfinderSettingsControl
isorg.qt-project.qt.cameraviewfindersettingscontrol/5.0
as defined inQCameraViewfinderSettingsControl_iid
.Warning
New backends should implement
QCameraViewfinderSettingsControl2
instead. Application developers should request this control only ifQCameraViewfinderSettingsControl2
is not available.
- class PySide2.QtMultimedia.QCameraViewfinderSettingsControl([parent=None])¶
- param parent:
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 inpixelAspectRatio
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:
parameter –
ViewfinderParameter
- Return type:
bool
Returns true if configuration of viewfinder
parameter
is supported by camera backend.
- PySide2.QtMultimedia.QCameraViewfinderSettingsControl.setViewfinderParameter(parameter, value)¶
- Parameters:
parameter –
ViewfinderParameter
value – object
Set the prefferred
value
of viewfinderparameter
.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.
See also
- PySide2.QtMultimedia.QCameraViewfinderSettingsControl.viewfinderParameter(parameter)¶
- Parameters:
parameter –
ViewfinderParameter
- Return type:
object
Returns the value of viewfinder
parameter
.See also
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.