QVideoWidgetControl 類

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 .

宏文檔編製

QVideoWidgetControl_iid

org.qt-project.qt.videowidgetcontrol/5.0

定義接口名為 QVideoWidgetControl 類。