Detailed Description
The QVideoWidgetControl class provides a media control which implements a video widget.
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.
Member Function Documentation
QVideoWidgetControl::QVideoWidgetControl(QObject * parent = 0) [protected]
Constructs a new video widget control with the given parent.
QVideoWidgetControl::~QVideoWidgetControl() [virtual]
Destroys a video widget control.
Qt::AspectRatioMode QVideoWidgetControl::aspectRatioMode() const [pure virtual]
Returns how video is scaled to fit the widget with respect to its aspect ratio.
See also setAspectRatioMode().
int QVideoWidgetControl::brightness() const [pure virtual]
Returns the brightness adjustment applied to a video.
Valid brightness values range between -100 and 100, the default is 0.
See also setBrightness().
void QVideoWidgetControl::brightnessChanged(int brightness) [signal]
Signals that a video widget's brightness adjustment has changed.
int QVideoWidgetControl::contrast() const [pure virtual]
Returns the contrast adjustment applied to a video.
Valid contrast values range between -100 and 100, the default is 0.
See also setContrast().
void QVideoWidgetControl::contrastChanged(int contrast) [signal]
Signals that a video widget's contrast adjustment has changed.
void QVideoWidgetControl::fullScreenChanged(bool fullScreen) [signal]
Signals that the fullScreen state of a video widget has changed.
int QVideoWidgetControl::hue() const [pure virtual]
Returns the hue adjustment applied to a video widget.
Value hue values range between -100 and 100, the default is 0.
See also setHue().
void QVideoWidgetControl::hueChanged(int hue) [signal]
Signals that a video widget's hue adjustment has changed.
bool QVideoWidgetControl::isFullScreen() const [pure virtual]
Returns true if the video is shown using the complete screen.
int QVideoWidgetControl::saturation() const [pure virtual]
Returns the saturation adjustment applied to a video widget.
Value saturation values range between -100 and 100, the default is 0.
See also setSaturation().
void QVideoWidgetControl::saturationChanged(int saturation) [signal]
Signals that a video widget's saturation adjustment has changed.
void QVideoWidgetControl::setAspectRatioMode(Qt::AspectRatioMode mode) [pure virtual]
Sets the aspect ratio mode which determines how video is scaled to the fit the widget with respect to its aspect ratio.
See also aspectRatioMode().
void QVideoWidgetControl::setBrightness(int brightness) [pure virtual]
Sets a brightness adjustment for a video.
Valid brightness values range between -100 and 100, the default is 0.
See also brightness().
void QVideoWidgetControl::setContrast(int contrast) [pure virtual]
Sets the contrast adjustment for a video widget to contrast.
Valid contrast values range between -100 and 100, the default is 0.
See also contrast().
void QVideoWidgetControl::setFullScreen(bool fullScreen) [pure virtual]
Sets whether a video widget is in fullScreen mode.
See also isFullScreen().
void QVideoWidgetControl::setHue(int hue) [pure virtual]
Sets a hue adjustment for a video widget.
Valid hue values range between -100 and 100, the default is 0.
See also hue().
void QVideoWidgetControl::setSaturation(int saturation) [pure virtual]
Sets a saturation adjustment for a video widget.
Valid saturation values range between -100 and 100, the default is 0.
See also saturation().
QWidget * QVideoWidgetControl::videoWidget() [pure virtual]
Returns the QWidget.