QGraphicsVideoItem Class ReferenceThe QGraphicsVideoItem class provides a graphics item which display video produced by a QMediaObject. More... #include <QGraphicsVideoItem> Inherits: QGraphicsObject and QMediaBindableInterface. This class was introduced in Qt Mobility 1.0. Properties
Public Functions
Reimplemented Public Functions
Signals
Additional Inherited Members
Detailed DescriptionThe 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. Property Documentation
|
Qt::AspectRatioMode | aspectRatioMode () const |
void | setAspectRatioMode ( Qt::AspectRatioMode mode ) |
This property holds the media object which provides the video displayed by a graphics item.
This property was introduced in Qt Mobility 1.0.
Access functions:
virtual QMediaObject * | mediaObject () const |
This property holds the native size of the video.
This property was introduced in Qt Mobility 1.0.
Access functions:
QSizeF | nativeSize () const |
Notifier signal:
void | nativeSizeChanged ( const QSizeF & size ) |
This property holds the video item's offset.
QGraphicsVideoItem will draw video using the offset for its top left corner.
This property was introduced in Qt Mobility 1.0.
Access functions:
QPointF | offset () const |
void | setOffset ( const QPointF & offset ) |
This property holds the video item's size.
QGraphicsVideoItem will draw video scaled to fit size according to its fillMode.
This property was introduced in Qt Mobility 1.0.
Access functions:
QSizeF | size () const |
void | setSize ( const QSizeF & size ) |
Constructs a graphics item that displays video.
The parent is passed to QGraphicsItem.
Destroys a video graphics item.
Reimplemented from QGraphicsItem::boundingRect().
This function was introduced in Qt Mobility 1.0.
Signals that the native size of the video has changed.
This function was introduced in Qt Mobility 1.0.
Reimplemented from QGraphicsItem::paint().
This function was introduced in Qt Mobility 1.0.
Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. | Qt qtmobility-1.2 | |
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD. | ||
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP ! |
Copyright © 2000-2012 - www.developpez.com