![]() |
Home · All Classes · All Functions · | ![]() |
The QGraphicsVideoItem class provides a graphics item which display video produced by a QMediaObject. More...
#include <QGraphicsVideoItem>
Inherits QGraphicsObject and QMediaBindableInterface.
|
The QGraphicsVideoItem class provides a graphics item which display video produced by a QMediaObject.
Attaching a QGraphicsVideoItem to a QMediaObject allows it to display the video or image output of that media object. A QGraphicsVideoItem is attached to a media object by passing a pointer to the QMediaObject to the setMediaObject() function.
player = new QMediaPlayer(this); QGraphicsVideoItem *item = new QGraphicsVideoItem; player->setVideoOutput(item); graphicsView->scene()->addItem(item); graphicsView->show(); player->setMedia(video); player->play();
Note: Only a single display output can be attached to a media object at one time.
See also QMediaObject, QMediaPlayer, and QVideoWidget.
This property holds how a video is scaled to fit the graphics item's size.
Access functions:
This property holds the media object which provides the video displayed by a graphics item.
Access functions:
This property holds the native size of the video.
Access functions:
This property holds the video item's offset.
QGraphicsVideoItem will draw video using the offset for its top left corner.
Access functions:
This property holds the video item's size.
QGraphicsVideoItem will draw video scaled to fit size according to its fillMode.
Access functions:
Constructs a graphics item that displays video.
The parent is passed to QGraphicsItem.
Destroys a video graphics item.
Signals that the native size of the video has changed.
See also mediaObject().
Copyright © 2010 Nokia Corporation and/or its subsidiary(-ies) | Trademarks | Qt Mobility Project 1.0.1 |