QVideoWidgetControlclass provides a media control which implements a video widget. 更多 …
videoWidget()property ofQVideoWidgetControlprovides 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());
QVideoWidgetControlis one of number of possible video output controls.The interface name of
QVideoWidgetControlisorg.qt-project.qt.videowidgetcontrol/5.0作为定义在QVideoWidgetControl_iid.另请参阅
requestControl()QVideoWidget
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。
另请参阅
PySide2.QtMultimediaWidgets.QVideoWidgetControl.
brightnessChanged
(
brightness
)
¶
brightness
–
int
PySide2.QtMultimediaWidgets.QVideoWidgetControl.
contrast
(
)
¶
int
Returns the contrast adjustment applied to a video.
有效对比度值的范围在 -100 到 100 之间,默认为 0。
另请参阅
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.
另请参阅
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.
另请参阅
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.
另请参阅
PySide2.QtMultimediaWidgets.QVideoWidgetControl.
setBrightness
(
brightness
)
¶
brightness
–
int
设置
brightness
调节为视频。
有效亮度值的范围在 -100 到 100 之间,默认为 0。
另请参阅
PySide2.QtMultimediaWidgets.QVideoWidgetControl.
setContrast
(
contrast
)
¶
contrast
–
int
把视频 Widget 的对比度调节设为
contrast
.
有效对比度值的范围在 -100 到 100 之间,默认为 0。
另请参阅
PySide2.QtMultimediaWidgets.QVideoWidgetControl.
setFullScreen
(
fullScreen
)
¶
fullScreen
–
bool
Sets whether a video widget is in
fullScreen
模式。
另请参阅
PySide2.QtMultimediaWidgets.QVideoWidgetControl.
setHue
(
hue
)
¶
hue
–
int
设置
hue
调节为视频 Widget。
有效色相值的范围在 -100 到 100 之间,默认为 0。
另请参阅
PySide2.QtMultimediaWidgets.QVideoWidgetControl.
setSaturation
(
saturation
)
¶
saturation
–
int
设置
saturation
调节为视频 Widget。
有效饱和度值的范围在 -100 至 100 之间,默认为 0。
另请参阅