The QVideoWidgetControl class provides a media control which implements a video widget. 更多...
头: | #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 = Q_NULLPTR) |
QVideoWidgetControl_iid |
The QVideoWidgetControl class provides a media control which implements a video widget.
The 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.
接口名称对于
QVideoWidgetControl
is
org.qt-project.qt.videowidgetcontrol/5.0
作为定义在
QVideoWidgetControl_iid
.
另请参阅 QMediaService::requestControl () 和 QVideoWidget .
[protected]
QVideoWidgetControl::
QVideoWidgetControl
(
QObject
*
parent
= Q_NULLPTR)
构造新视频 Widget 控件采用给定 parent .
[虚拟]
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 ().
[signal]
void
QVideoWidgetControl::
brightnessChanged
(
int
brightness
)
Signals that a video widget's brightness 调节已改变。
[pure virtual]
int
QVideoWidgetControl::
contrast
() const
Returns the contrast adjustment applied to a video.
有效对比度值的范围在 -100 到 100 之间,默认为 0。
另请参阅 setContrast ().
[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.
[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 ().
[signal]
void
QVideoWidgetControl::
hueChanged
(
int
hue
)
Signals that a video widget's hue 调节已改变。
[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 ().
[signal]
void
QVideoWidgetControl::
saturationChanged
(
int
saturation
)
Signals that a video widget's saturation 调节已改变。
[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 类。