内容表

上一话题

QVideoWidget

下一话题

PySide2.QtNetwork

QVideoWidgetControl

QVideoWidgetControl class provides a media control which implements a video widget. 更多

Inheritance diagram of PySide2.QtMultimediaWidgets.QVideoWidgetControl

详细描述

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 作为定义在 QVideoWidgetControl_iid .

另请参阅

requestControl() QVideoWidget

class QVideoWidgetControl ( [ parent=None ] )
param parent

QObject

构造新视频 Widget 控件采用给定 parent .

PySide2.QtMultimediaWidgets.QVideoWidgetControl. aspectRatioMode ( )
返回类型

AspectRatioMode

Returns how video is scaled to fit the widget with respect to its aspect ratio.

PySide2.QtMultimediaWidgets.QVideoWidgetControl. brightness ( )
返回类型

int

Returns the brightness adjustment applied to a video.

有效亮度值的范围在 -100 到 100 之间,默认为 0。

另请参阅

setBrightness()

PySide2.QtMultimediaWidgets.QVideoWidgetControl. brightnessChanged ( brightness )
参数

brightness int

PySide2.QtMultimediaWidgets.QVideoWidgetControl. contrast ( )
返回类型

int

Returns the contrast adjustment applied to a video.

有效对比度值的范围在 -100 到 100 之间,默认为 0。

另请参阅

setContrast()

PySide2.QtMultimediaWidgets.QVideoWidgetControl. contrastChanged ( contrast )
参数

contrast int

PySide2.QtMultimediaWidgets.QVideoWidgetControl. fullScreenChanged ( fullScreen )
参数

fullScreen bool

PySide2.QtMultimediaWidgets.QVideoWidgetControl. hue ( )
返回类型

int

Returns the hue adjustment applied to a video widget.

Value hue values range between -100 and 100, the default is 0.

另请参阅

setHue()

PySide2.QtMultimediaWidgets.QVideoWidgetControl. hueChanged ( hue )
参数

hue int

PySide2.QtMultimediaWidgets.QVideoWidgetControl. isFullScreen ( )
返回类型

bool

Returns true if the video is shown using the complete screen.

PySide2.QtMultimediaWidgets.QVideoWidgetControl. saturation ( )
返回类型

int

Returns the saturation adjustment applied to a video widget.

Value saturation values range between -100 and 100, the default is 0.

另请参阅

setSaturation()

PySide2.QtMultimediaWidgets.QVideoWidgetControl. saturationChanged ( saturation )
参数

saturation int

PySide2.QtMultimediaWidgets.QVideoWidgetControl. setAspectRatioMode ( mode )
参数

mode AspectRatioMode

Sets the aspect ratio mode which determines how video is scaled to the fit the widget with respect to its aspect ratio.

另请参阅

aspectRatioMode()

PySide2.QtMultimediaWidgets.QVideoWidgetControl. setBrightness ( brightness )
参数

brightness int

设置 brightness 调节为视频。

有效亮度值的范围在 -100 到 100 之间,默认为 0。

另请参阅

brightness()

PySide2.QtMultimediaWidgets.QVideoWidgetControl. setContrast ( contrast )
参数

contrast int

把视频 Widget 的对比度调节设为 contrast .

有效对比度值的范围在 -100 到 100 之间,默认为 0。

另请参阅

contrast()

PySide2.QtMultimediaWidgets.QVideoWidgetControl. setFullScreen ( fullScreen )
参数

fullScreen bool

Sets whether a video widget is in fullScreen 模式。

另请参阅

isFullScreen()

PySide2.QtMultimediaWidgets.QVideoWidgetControl. setHue ( hue )
参数

hue int

设置 hue 调节为视频 Widget。

有效色相值的范围在 -100 到 100 之间,默认为 0。

另请参阅

hue()

PySide2.QtMultimediaWidgets.QVideoWidgetControl. setSaturation ( saturation )
参数

saturation int

设置 saturation 调节为视频 Widget。

有效饱和度值的范围在 -100 至 100 之间,默认为 0。

另请参阅

saturation()

PySide2.QtMultimediaWidgets.QVideoWidgetControl. videoWidget ( )
返回类型

QWidget

返回 QWidget .