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 PySide2.QtMultimediaWidgets.QVideoWidgetControl([parent=None])¶
- param parent:
Constructs a new video widget control with the given
parent
.
- PySide2.QtMultimediaWidgets.QVideoWidgetControl.aspectRatioMode()¶
- Return type:
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
- PySide2.QtMultimediaWidgets.QVideoWidgetControl.videoWidget()¶
- Return type:
Returns the
QWidget
.
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.