QVideoWidgetclass provides a widget which presents video produced by a media object. 更多 …
继承者: QCameraViewfinder
def
aspectRatioMode
()
def
brightness
()
def
contrast
()
def
hue
()
def
saturation
()
def
videoSurface
()
def
setAspectRatioMode
(mode)
def
setBrightness
(brightness)
def
setContrast
(contrast)
def
setFullScreen
(fullScreen)
def
setHue
(hue)
def
setSaturation
(saturation)
def
brightnessChanged
(brightness)
def
contrastChanged
(contrast)
def
fullScreenChanged
(fullScreen)
def
hueChanged
(hue)
def
saturationChanged
(saturation)
Attaching a
QVideoWidget到QMediaObjectallows it to display the video or image output of that media object. AQVideoWidgetis attached to media object by passing a pointer to theQMediaObjectin its constructor, and detached by destroying theQVideoWidget.player = new QMediaPlayer; playlist = new QMediaPlaylist(player); playlist->addMedia(QUrl("http://example.com/myclip1.mp4")); playlist->addMedia(QUrl("http://example.com/myclip2.mp4")); videoWidget = new QVideoWidget; player->setVideoOutput(videoWidget); videoWidget->show(); playlist->setCurrentIndex(1); player->play();注意 :每次只可以把单个显示输出附加到媒体对象。
PySide2.QtMultimediaWidgets.QVideoWidget.
aspectRatioMode
(
)
¶
AspectRatioMode
另请参阅
PySide2.QtMultimediaWidgets.QVideoWidget.
brightness
(
)
¶
int
另请参阅
PySide2.QtMultimediaWidgets.QVideoWidget.
brightnessChanged
(
brightness
)
¶
brightness
–
int
PySide2.QtMultimediaWidgets.QVideoWidget.
contrast
(
)
¶
int
另请参阅
PySide2.QtMultimediaWidgets.QVideoWidget.
contrastChanged
(
contrast
)
¶
contrast
–
int
PySide2.QtMultimediaWidgets.QVideoWidget.
fullScreenChanged
(
fullScreen
)
¶
fullScreen
–
bool
PySide2.QtMultimediaWidgets.QVideoWidget.
hueChanged
(
hue
)
¶
hue
–
int
PySide2.QtMultimediaWidgets.QVideoWidget.
saturation
(
)
¶
int
另请参阅
PySide2.QtMultimediaWidgets.QVideoWidget.
saturationChanged
(
saturation
)
¶
saturation
–
int
PySide2.QtMultimediaWidgets.QVideoWidget.
setAspectRatioMode
(
mode
)
¶
mode
–
AspectRatioMode
另请参阅
PySide2.QtMultimediaWidgets.QVideoWidget.
setBrightness
(
brightness
)
¶
brightness
–
int
另请参阅
PySide2.QtMultimediaWidgets.QVideoWidget.
setContrast
(
contrast
)
¶
contrast
–
int
另请参阅
PySide2.QtMultimediaWidgets.QVideoWidget.
setFullScreen
(
fullScreen
)
¶
fullScreen
–
bool
另请参阅
isFullScreen()
PySide2.QtMultimediaWidgets.QVideoWidget.
setSaturation
(
saturation
)
¶
saturation
–
int
另请参阅
PySide2.QtMultimediaWidgets.QVideoWidget.
videoSurface
(
)
¶
QAbstractVideoSurface