The QCameraViewfinderSettingsControl2 class provides access to the viewfinder settings of a camera media service. 更多...
头: | #include <QCameraViewfinderSettingsControl2> |
qmake: | QT += multimedia |
Since: | Qt 5.5 |
继承: | QMediaControl |
该类在 Qt 5.5 引入。
virtual | ~QCameraViewfinderSettingsControl2 () |
virtual void | setViewfinderSettings (const QCameraViewfinderSettings & settings ) = 0 |
virtual QList<QCameraViewfinderSettings> | supportedViewfinderSettings () const = 0 |
virtual QCameraViewfinderSettings | viewfinderSettings () const = 0 |
QCameraViewfinderSettingsControl2 (QObject * parent = nullptr) |
QCameraViewfinderSettingsControl2_iid |
The functionality provided by this control is exposed to application code through the QCamera 类。
The interface name of QCameraViewfinderSettingsControl2 is
org.qt-project.qt.cameraviewfindersettingscontrol2/5.5
作为定义在
QCameraViewfinderSettingsControl2_iid
.
另请参阅 QMediaService::requestControl (), QCameraViewfinderSettings ,和 QCamera .
[protected]
QCameraViewfinderSettingsControl2::
QCameraViewfinderSettingsControl2
(
QObject
*
parent
= nullptr)
Constructs a camera viewfinder settings control object with parent .
[虚拟]
QCameraViewfinderSettingsControl2::
~QCameraViewfinderSettingsControl2
()
Destroys the camera viewfinder settings control object.
[pure virtual]
void
QCameraViewfinderSettingsControl2::
setViewfinderSettings
(const
QCameraViewfinderSettings
&
settings
)
Sets the camera viewfinder settings .
另请参阅 viewfinderSettings ().
[pure virtual]
QList
<
QCameraViewfinderSettings
> QCameraViewfinderSettingsControl2::
supportedViewfinderSettings
() const
Returns a list of supported camera viewfinder settings.
The list is ordered by preference; preferred settings come first.
[pure virtual]
QCameraViewfinderSettings
QCameraViewfinderSettingsControl2::
viewfinderSettings
() const
Returns the viewfinder settings.
If undefined or unsupported values are passed to QCameraViewfinderSettingsControl2::setViewfinderSettings (), this function returns the actual settings used by the camera viewfinder. These may be available only once the camera is active.
另请参阅 setViewfinderSettings ().
org.qt-project.qt.cameraviewfindersettingscontrol2/5.5
定义接口名为 QCameraViewfinderSettingsControl2 类。