QVideoWidgetControl 类提供实现视频小部件的媒体控件。 更多...
头: | #include <QVideoWidgetControl> |
qmake: | QT += multimediawidgets |
继承: | QMediaControl |
virtual | ~QVideoWidgetControl () |
virtual Qt::AspectRatioMode | aspectRatioMode () const = 0 |
virtual int | brightness () const = 0 |
virtual int | contrast () const = 0 |
virtual int | hue () const = 0 |
virtual bool | isFullScreen () const = 0 |
virtual int | saturation () const = 0 |
virtual void | setAspectRatioMode (Qt::AspectRatioMode mode ) = 0 |
virtual void | setBrightness (int brightness ) = 0 |
virtual void | setContrast (int contrast ) = 0 |
virtual void | setFullScreen (bool fullScreen ) = 0 |
virtual void | setHue (int hue ) = 0 |
virtual void | setSaturation (int saturation ) = 0 |
virtual QWidget * | videoWidget () = 0 |
void | brightnessChanged (int brightness ) |
void | contrastChanged (int contrast ) |
void | fullScreenChanged (bool fullScreen ) |
void | hueChanged (int hue ) |
void | saturationChanged (int saturation ) |
QVideoWidgetControl (QObject * parent = nullptr) |
QVideoWidgetControl_iid |
The videoWidget () 特性 QVideoWidgetControl 提供指向由控件的媒体服务实现的视频 Widget 的指针。此 Widget 由媒体服务拥有,因此应该小心不要删除它。
QVideoWidgetControl *widgetControl = mediaService->requestControl<QVideoWidgetControl *>(); layout->addWidget(widgetControl->videoWidget());
QVideoWidgetControl 是很多可能的视频输出控件之一。
QVideoWidgetControl 接口名称为
org.qt-project.qt.videowidgetcontrol/5.0
作为定义在
QVideoWidgetControl_iid
.
另请参阅 QMediaService::requestControl () 和 QVideoWidget .
[protected]
QVideoWidgetControl::
QVideoWidgetControl
(
QObject
*
parent
= nullptr)
构造新视频 Widget 控件采用给定 parent .
[signal]
void
QVideoWidgetControl::
brightnessChanged
(
int
brightness
)
Signals that a video widget's brightness 调节已改变。
[signal]
void
QVideoWidgetControl::
contrastChanged
(
int
contrast
)
Signals that a video widget's contrast 调节已改变。
[signal]
void
QVideoWidgetControl::
fullScreenChanged
(
bool
fullScreen
)
信号 fullScreen state of a video widget has changed.
[signal]
void
QVideoWidgetControl::
hueChanged
(
int
hue
)
Signals that a video widget's hue 调节已改变。
[signal]
void
QVideoWidgetControl::
saturationChanged
(
int
saturation
)
Signals that a video widget's saturation 调节已改变。
[虚拟]
QVideoWidgetControl::
~QVideoWidgetControl
()
销毁视频 Widget 控件。
[pure virtual]
Qt::AspectRatioMode
QVideoWidgetControl::
aspectRatioMode
() const
Returns how video is scaled to fit the widget with respect to its aspect ratio.
另请参阅 setAspectRatioMode ().
[pure virtual]
int
QVideoWidgetControl::
brightness
() const
Returns the brightness adjustment applied to a video.
有效亮度值的范围在 -100 到 100 之间,默认为 0。
另请参阅 setBrightness ().
[pure virtual]
int
QVideoWidgetControl::
contrast
() const
Returns the contrast adjustment applied to a video.
有效对比度值的范围在 -100 到 100 之间,默认为 0。
另请参阅 setContrast ().
[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.
另请参阅 setHue ().
[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.
另请参阅 setSaturation ().
[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.
另请参阅 aspectRatioMode ().
[pure virtual]
void
QVideoWidgetControl::
setBrightness
(
int
brightness
)
设置 brightness 调节为视频。
有效亮度值的范围在 -100 到 100 之间,默认为 0。
另请参阅 brightness ().
[pure virtual]
void
QVideoWidgetControl::
setContrast
(
int
contrast
)
把视频 Widget 的对比度调节设为 contrast .
有效对比度值的范围在 -100 到 100 之间,默认为 0。
另请参阅 contrast ().
[pure virtual]
void
QVideoWidgetControl::
setFullScreen
(
bool
fullScreen
)
Sets whether a video widget is in fullScreen 模式。
另请参阅 isFullScreen ().
[pure virtual]
void
QVideoWidgetControl::
setHue
(
int
hue
)
设置 hue 调节为视频 Widget。
有效色相值的范围在 -100 到 100 之间,默认为 0。
另请参阅 hue ().
[pure virtual]
void
QVideoWidgetControl::
setSaturation
(
int
saturation
)
设置 saturation 调节为视频 Widget。
有效饱和度值的范围在 -100 至 100 之间,默认为 0。
另请参阅 saturation ().
[pure virtual]
QWidget
*QVideoWidgetControl::
videoWidget
()
返回 QWidget .
org.qt-project.qt.videowidgetcontrol/5.0
定义接口名为 QVideoWidgetControl 类。