QVideoWidgetControl Class▲
-
Header: QVideoWidgetControl
-
qmake: QT += multimediawidgets
-
Inherits: QMediaControl
-
Inherited By:
-
Group: QVideoWidgetControl is part of multimedia-serv
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-&
gt;requestControl&
lt;QVideoWidgetControl *&
gt;();
layout-&
gt;addWidget(widgetControl-&
gt;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▲
See also QMediaService::requestControl(), QVideoWidget
Member Function Documentation▲
[explicit protected] QVideoWidgetControl::QVideoWidgetControl(QObject *parent = nullptr)▲
Constructs a new video widget control with the given parent.
[virtual] QVideoWidgetControl::~QVideoWidgetControl()▲
Destroys a video widget control.
[pure virtual] Qt::AspectRatioMode QVideoWidgetControl::aspectRatioMode() const▲
Returns how video is scaled to fit the widget with respect to its aspect ratio.
See Also▲
See also setAspectRatioMode()
[pure virtual] int QVideoWidgetControl::brightness() const▲
Returns the brightness adjustment applied to a video.
Valid brightness values range between -100 and 100, the default is 0.
See Also▲
See also setBrightness()
void QVideoWidgetControl::brightnessChanged(int brightness)▲
Signals that a video widget's brightness adjustment has changed.
[pure virtual] int QVideoWidgetControl::contrast() const▲
Returns the contrast adjustment applied to a video.
Valid contrast values range between -100 and 100, the default is 0.
See Also▲
See also setContrast()
void QVideoWidgetControl::contrastChanged(int contrast)▲
Signals that a video widget's contrast adjustment has changed.
void QVideoWidgetControl::fullScreenChanged(bool fullScreen)▲
Signals that the fullScreen state of a video widget has changed.
[pure virtual] int QVideoWidgetControl::hue() const▲
Returns the hue adjustment applied to a video widget.
Value hue values range between -100 and 100, the default is 0.
See Also▲
See also setHue()
void QVideoWidgetControl::hueChanged(int hue)▲
Signals that a video widget's hue adjustment has changed.
[pure virtual] bool QVideoWidgetControl::isFullScreen() const▲
Returns true if the video is shown using the complete screen.
[pure virtual] int QVideoWidgetControl::saturation() const▲
Returns the saturation adjustment applied to a video widget.
Value saturation values range between -100 and 100, the default is 0.
See Also▲
See also setSaturation()
void QVideoWidgetControl::saturationChanged(int saturation)▲
Signals that a video widget's saturation adjustment has changed.
[pure virtual] void QVideoWidgetControl::setAspectRatioMode(Qt::AspectRatioMode mode)▲
Sets the aspect ratio mode which determines how video is scaled to the fit the widget with respect to its aspect ratio.
See Also▲
See also aspectRatioMode()
[pure virtual] void QVideoWidgetControl::setBrightness(int brightness)▲
Sets a brightness adjustment for a video.
Valid brightness values range between -100 and 100, the default is 0.
See Also▲
See also brightness()
[pure virtual] void QVideoWidgetControl::setContrast(int contrast)▲
Sets the contrast adjustment for a video widget to contrast.
Valid contrast values range between -100 and 100, the default is 0.
See Also▲
See also contrast()
[pure virtual] void QVideoWidgetControl::setFullScreen(bool fullScreen)▲
[pure virtual] void QVideoWidgetControl::setHue(int hue)▲
Sets a hue adjustment for a video widget.
Valid hue values range between -100 and 100, the default is 0.
See Also▲
See also hue()
[pure virtual] void QVideoWidgetControl::setSaturation(int saturation)▲
Sets a saturation adjustment for a video widget.
Valid saturation values range between -100 and 100, the default is 0.
See Also▲
See also saturation()
[pure virtual] QWidget *QVideoWidgetControl::videoWidget()▲
Returns the QWidget.
Macro Documentation▲
QVideoWidgetControl_iid▲
org.qt-project.qt.videowidgetcontrol/5.0
Defines the interface name of the QVideoWidgetControl class.