QVideoWidget ClassThe QVideoWidget class provides a widget which presents video produced by a media object. More... #include <QVideoWidget> Inherits: QWidget and QMediaBindableInterface. Inherited by: QCameraViewfinder. Public Types
Properties
Public Functions
Reimplemented Public Functions
Public Slots
Signals
Protected Functions
Reimplemented Protected Functions
Additional Inherited Members
Detailed DescriptionThe QVideoWidget class provides a widget which presents video produced by a media object. Attaching a QVideoWidget to a QMediaObject allows it to display the video or image output of that media object. A QVideoWidget is attached to media object by passing a pointer to the QMediaObject in its constructor, and detached by destroying the QVideoWidget. 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 QMediaObject, QMediaPlayer, and QGraphicsVideoItem. Property Documentation
|
Qt::AspectRatioMode | aspectRatioMode() const |
void | setAspectRatioMode(Qt::AspectRatioMode mode) |
This property holds an adjustment to the brightness of displayed video.
Valid brightness values range between -100 and 100, the default is 0.
Access functions:
int | brightness() const |
void | setBrightness(int brightness) |
Notifier signal:
void | brightnessChanged(int brightness) |
This property holds an adjustment to the contrast of displayed video.
Valid contrast values range between -100 and 100, the default is 0.
Access functions:
int | contrast() const |
void | setContrast(int contrast) |
Notifier signal:
void | contrastChanged(int contrast) |
This property holds whether video display is confined to a window or is fullScreen.
Access functions:
bool | isFullScreen() const |
void | setFullScreen(bool fullScreen) |
Notifier signal:
void | fullScreenChanged(bool fullScreen) |
This property holds an adjustment to the hue of displayed video.
Valid hue values range between -100 and 100, the default is 0.
Access functions:
int | hue() const |
void | setHue(int hue) |
Notifier signal:
void | hueChanged(int hue) |
This property holds the media object which provides the video displayed by a widget.
Access functions:
virtual QMediaObject * | mediaObject() const |
This property holds an adjustment to the saturation of displayed video.
Valid saturation values range between -100 and 100, the default is 0.
Access functions:
int | saturation() const |
void | setSaturation(int saturation) |
Notifier signal:
void | saturationChanged(int saturation) |
Constructs a new video widget.
The parent is passed to QWidget.
Destroys a video widget.
Reimplemented from QObject::event().
Current event event. Returns the value of the baseclass QWidget::event(QEvent *event) function.
Reimplemented from QWidget::hideEvent().
Handles the hide event.
Reimplemented from QWidget::moveEvent().
Handles the move event.
Reimplemented from QWidget::paintEvent().
Handles the paint event.
Reimplemented from QWidget::resizeEvent().
Handles the resize event.
Reimplemented from QWidget::showEvent().
Handles the show event.
Reimplemented from QWidget::sizeHint().
Returns the size hint for the current back end, if there is one, or else the size hint from QWidget.