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

Detailed Description¶
The
videoWidget()
property ofQVideoWidgetControl
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
isorg.qt-project.qt.videowidgetcontrol/5.0
as defined inQVideoWidgetControl_iid
.See also
requestControl()
QVideoWidget
-
class
QVideoWidgetControl
([parent=None])¶ - param parent
QObject
Constructs a new video widget control with the given
parent
.
-
PySide2.QtMultimediaWidgets.QVideoWidgetControl.
aspectRatioMode
()¶ - Return type
AspectRatioMode
Returns how video is scaled to fit the widget with respect to its aspect ratio.
See also
-
PySide2.QtMultimediaWidgets.QVideoWidgetControl.
brightness
()¶ - Return type
int
Returns the brightness adjustment applied to a video.
Valid brightness values range between -100 and 100, the default is 0.
See also
-
PySide2.QtMultimediaWidgets.QVideoWidgetControl.
brightnessChanged
(brightness)¶ - Parameters
brightness –
int
-
PySide2.QtMultimediaWidgets.QVideoWidgetControl.
contrast
()¶ - Return type
int
Returns the contrast adjustment applied to a video.
Valid contrast values range between -100 and 100, the default is 0.
See also
-
PySide2.QtMultimediaWidgets.QVideoWidgetControl.
contrastChanged
(contrast)¶ - Parameters
contrast –
int
-
PySide2.QtMultimediaWidgets.QVideoWidgetControl.
fullScreenChanged
(fullScreen)¶ - Parameters
fullScreen –
bool
-
PySide2.QtMultimediaWidgets.QVideoWidgetControl.
hue
()¶ - Return type
int
Returns the hue adjustment applied to a video widget.
Value hue values range between -100 and 100, the default is 0.
See also
-
PySide2.QtMultimediaWidgets.QVideoWidgetControl.
hueChanged
(hue)¶ - Parameters
hue –
int
-
PySide2.QtMultimediaWidgets.QVideoWidgetControl.
isFullScreen
()¶ - Return type
bool
Returns true if the video is shown using the complete screen.
-
PySide2.QtMultimediaWidgets.QVideoWidgetControl.
saturation
()¶ - Return type
int
Returns the saturation adjustment applied to a video widget.
Value saturation values range between -100 and 100, the default is 0.
See also
-
PySide2.QtMultimediaWidgets.QVideoWidgetControl.
saturationChanged
(saturation)¶ - Parameters
saturation –
int
-
PySide2.QtMultimediaWidgets.QVideoWidgetControl.
setAspectRatioMode
(mode)¶ - Parameters
mode –
AspectRatioMode
Sets the aspect ratio
mode
which determines how video is scaled to the fit the widget with respect to its aspect ratio.See also
-
PySide2.QtMultimediaWidgets.QVideoWidgetControl.
setBrightness
(brightness)¶ - Parameters
brightness –
int
Sets a
brightness
adjustment for a video.Valid brightness values range between -100 and 100, the default is 0.
See also
-
PySide2.QtMultimediaWidgets.QVideoWidgetControl.
setContrast
(contrast)¶ - Parameters
contrast –
int
Sets the contrast adjustment for a video widget to
contrast
.Valid contrast values range between -100 and 100, the default is 0.
See also
-
PySide2.QtMultimediaWidgets.QVideoWidgetControl.
setFullScreen
(fullScreen)¶ - Parameters
fullScreen –
bool
Sets whether a video widget is in
fullScreen
mode.See also
-
PySide2.QtMultimediaWidgets.QVideoWidgetControl.
setHue
(hue)¶ - Parameters
hue –
int
Sets a
hue
adjustment for a video widget.Valid hue values range between -100 and 100, the default is 0.
See also
-
PySide2.QtMultimediaWidgets.QVideoWidgetControl.
setSaturation
(saturation)¶ - Parameters
saturation –
int
Sets a
saturation
adjustment for a video widget.Valid saturation values range between -100 and 100, the default is 0.
See also