QVideoDeviceSelectorControl Class

The QVideoDeviceSelectorControl class provides an video device selector media control. More...

Header: #include <QVideoDeviceSelectorControl>
qmake: QT += multimedia
Inherits: QMediaControl

Public Functions

virtual ~QVideoDeviceSelectorControl()
virtual int defaultDevice() const = 0
virtual int deviceCount() const = 0
virtual QString deviceDescription(int index) const = 0
virtual QString deviceName(int index) const = 0
virtual int selectedDevice() const = 0
  • 31 public functions inherited from QObject

Public Slots

virtual void setSelectedDevice(int index) = 0
  • 1 public slot inherited from QObject

Signals

void devicesChanged()
void selectedDeviceChanged(int index)
void selectedDeviceChanged(const QString &name)

Static Public Members

const QMetaObject staticMetaObject
  • 1 static public member inherited from QMediaControl
  • 9 static public members inherited from QObject

Protected Functions

QVideoDeviceSelectorControl(QObject *parent = nullptr)
  • 9 protected functions inherited from QObject

Macros

Additional Inherited Members

Detailed Description

The QVideoDeviceSelectorControl class provides an video device selector media control.

The QVideoDeviceSelectorControl class provides descriptions of the video devices available on a system and allows one to be selected as the endpoint of a media service.

The interface name of QVideoDeviceSelectorControl is org.qt-project.qt.videodeviceselectorcontrol/5.0 as defined in QVideoDeviceSelectorControl_iid.

Member Type Documentation

Property Documentation

Member Function Documentation

[protected] QVideoDeviceSelectorControl::QVideoDeviceSelectorControl(QObject *parent = nullptr)

Constructs a video device selector control with the given parent.

[virtual] QVideoDeviceSelectorControl::~QVideoDeviceSelectorControl()

Destroys a video device selector control.

[pure virtual] int QVideoDeviceSelectorControl::defaultDevice() const

[pure virtual] int QVideoDeviceSelectorControl::deviceCount() const

[pure virtual] QString QVideoDeviceSelectorControl::deviceDescription(int index) const

[pure virtual] QString QVideoDeviceSelectorControl::deviceName(int index) const

[signal] void QVideoDeviceSelectorControl::devicesChanged()

[pure virtual] int QVideoDeviceSelectorControl::selectedDevice() const

See also setSelectedDevice().

[signal] void QVideoDeviceSelectorControl::selectedDeviceChanged(int index)

Note: Signal selectedDeviceChanged is overloaded in this class. To connect to this signal by using the function pointer syntax, Qt provides a convenient helper for obtaining the function pointer as shown in this example:


  connect(videoDeviceSelectorControl, QOverload<int>::of(&QVideoDeviceSelectorControl::selectedDeviceChanged),
      [=](int index){ /* ... */ });

[signal] void QVideoDeviceSelectorControl::selectedDeviceChanged(const QString &name)

Note: Signal selectedDeviceChanged is overloaded in this class. To connect to this signal by using the function pointer syntax, Qt provides a convenient helper for obtaining the function pointer as shown in this example:


  connect(videoDeviceSelectorControl, QOverload<const QString &>::of(&QVideoDeviceSelectorControl::selectedDeviceChanged),
      [=](const QString &name){ /* ... */ });

[pure virtual slot] void QVideoDeviceSelectorControl::setSelectedDevice(int index)

See also selectedDevice().

Member Variable Documentation

Related Non-Members

Macro Documentation

QCameraInfoControl_iid

org.qt-project.qt.camerainfocontrol/5.3

Defines the interface name of the QCameraInfoControl class.

QVideoDeviceSelectorControl_iid

org.qt-project.qt.videodeviceselectorcontrol/5.0

Defines the interface name of the QVideoDeviceSelectorControl class.