QVideoWidget¶
The
QVideoWidget
class provides a widget which presents video produced by a media object. More…
Inherited by: QCameraViewfinder
Synopsis¶
Functions¶
def
aspectRatioMode
()def
brightness
()def
contrast
()def
hue
()def
saturation
()
Slots¶
def
setAspectRatioMode
(mode)def
setBrightness
(brightness)def
setContrast
(contrast)def
setFullScreen
(fullScreen)def
setHue
(hue)def
setSaturation
(saturation)
Signals¶
def
brightnessChanged
(brightness)def
contrastChanged
(contrast)def
fullScreenChanged
(fullScreen)def
hueChanged
(hue)def
saturationChanged
(saturation)
Detailed Description¶
Attaching a
QVideoWidget
to aQMediaObject
allows it to display the video or image output of that media object. AQVideoWidget
is attached to media object by passing a pointer to theQMediaObject
in 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();Note : Only a single display output can be attached to a media object at one time.
See also
-
class
QVideoWidget
([parent=None])¶ - param parent
QWidget
Constructs a new video widget.
The
parent
is passed toQWidget
.
-
PySide2.QtMultimediaWidgets.QVideoWidget.
aspectRatioMode
()¶ - Return type
AspectRatioMode
See also
-
PySide2.QtMultimediaWidgets.QVideoWidget.
brightness
()¶ - Return type
int
See also
-
PySide2.QtMultimediaWidgets.QVideoWidget.
brightnessChanged
(brightness)¶ - Parameters
brightness –
int
-
PySide2.QtMultimediaWidgets.QVideoWidget.
contrast
()¶ - Return type
int
See also
-
PySide2.QtMultimediaWidgets.QVideoWidget.
contrastChanged
(contrast)¶ - Parameters
contrast –
int
-
PySide2.QtMultimediaWidgets.QVideoWidget.
fullScreenChanged
(fullScreen)¶ - Parameters
fullScreen –
bool
-
PySide2.QtMultimediaWidgets.QVideoWidget.
hueChanged
(hue)¶ - Parameters
hue –
int
-
PySide2.QtMultimediaWidgets.QVideoWidget.
saturation
()¶ - Return type
int
See also
-
PySide2.QtMultimediaWidgets.QVideoWidget.
saturationChanged
(saturation)¶ - Parameters
saturation –
int
-
PySide2.QtMultimediaWidgets.QVideoWidget.
setAspectRatioMode
(mode)¶ - Parameters
mode –
AspectRatioMode
See also
-
PySide2.QtMultimediaWidgets.QVideoWidget.
setBrightness
(brightness)¶ - Parameters
brightness –
int
See also
-
PySide2.QtMultimediaWidgets.QVideoWidget.
setContrast
(contrast)¶ - Parameters
contrast –
int
See also
-
PySide2.QtMultimediaWidgets.QVideoWidget.
setFullScreen
(fullScreen)¶ - Parameters
fullScreen –
bool
See also
isFullScreen()
-
PySide2.QtMultimediaWidgets.QVideoWidget.
setSaturation
(saturation)¶ - Parameters
saturation –
int
See also
© 2018 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.