QVideoWidgetControl Class

The QVideoWidgetControl class provides a media control which implements a video widget. More...

Header: #include <QVideoWidgetControl>
qmake: QT += multimediawidgets
Inherits: QMediaControl

Public Functions

  • 30 public functions inherited from QObject

Protected Functions

QVideoWidgetControl(QObject *parent = nullptr)
  • 9 protected functions inherited from QObject
typedef QObjectList
QList<T> qFindChildren(const QObject *obj, const QRegExp &regExp)
T qobject_cast(QObject *object)
T qobject_cast(const QObject *object)

Macros

Additional Inherited Members

  • 1 property inherited from QObject
  • 1 public slot inherited from QObject
  • 2 signals inherited from QObject
  • 9 static public members inherited from QObject

Detailed Description

The videoWidget() property of QVideoWidgetControl provides a pointer to a video widget implemented by the control's media service. This widget is owned by the media service and so care should be taken not to delete it.


  QVideoWidgetControl *widgetControl = mediaService->requestControl<QVideoWidgetControl *>();
  layout->addWidget(widgetControl->videoWidget());

QVideoWidgetControl is one of number of possible video output controls.

The interface name of QVideoWidgetControl is org.qt-project.qt.videowidgetcontrol/5.0 as defined in QVideoWidgetControl_iid.

See also QMediaService::requestControl() and QVideoWidget.

Member Function Documentation

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

Constructs a new video widget control with the given parent.

[virtual] QVideoWidgetControl::~QVideoWidgetControl()

Destroys a video widget control.

Macro Documentation

QVideoWidgetControl::QVideoWidgetControl_iid

org.qt-project.qt.videowidgetcontrol/5.0

Defines the interface name of the QVideoWidgetControl class.