![]() |
Home · All Classes · All Functions · | ![]() |
The QVideoWidget class provides a widget which presents video produced by a media object. More...
#include <QVideoWidget>
This class is under development and is subject to change.
Inherits QWidget and QMediaBindableInterface.
|
|
The 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;
widget = new QVideoWidget;
widget->show();
player->setVideoOutput(widget);
player->setMedia(QUrl("http://example.com/movie.mp4"));
player->play();
Note: Only a single display output can be attached to a media object at one time.
See also QMediaObject, QMediaPlayer, and QGraphicsVideoItem.
This property holds how video is scaled with respect to its aspect ratio.
Access functions:
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:
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:
This property holds whether video display is confined to a window or is fullScreen.
Access functions:
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:
This property holds the media object which provides the video displayed by a widget.
Access functions:
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:
Constructs a new video widget.
The parent is passed to QWidget.
Destroys a video widget.
Signals that a video widgets's brightness adjustment has changed.
See also brightness.
Signals that a video widgets's contrast adjustment has changed.
See also contrast.
Signals that the fullScreen mode of a video widget has changed.
See also fullScreen.
Handles the hide event.
Reimplemented from QWidget.
Signals that a video widgets's hue has changed.
See also hue.
Handles the move event.
Reimplemented from QWidget.
Handles the paint event.
Reimplemented from QWidget.
Handles the resize event.
Reimplemented from QWidget.
Signals that a video widgets's saturation has changed.
See also saturation.
See also mediaObject().
Handles the show event.
Reimplemented from QWidget.
Returns the size hint for the current back end, if there is one, or else the size hint from QWidget.
Reimplemented from QWidget.
Copyright © 2010 Nokia Corporation and/or its subsidiary(-ies) | Trademarks | Qt Mobility Project 1.0.1 |