Use QVideoGraphicsItem in the videographicsitem example.
The videographicsitem example now uses QVideoGraphicsItem instead of a custom QAbstractVideoSurface. The old code has been moved to a new example: "customvideosurface/customvideoitem". Change-Id: I83212f36168ef94d670b447eb1a742a39753939d Reviewed-by: Jason Barron <jason.barron@digia.com>
This commit is contained in:
committed by
The Qt Project
parent
439d5b0e53
commit
b616dd5165
@@ -49,11 +49,9 @@
|
||||
QT_BEGIN_NAMESPACE
|
||||
class QAbstractButton;
|
||||
class QSlider;
|
||||
class QGraphicsVideoItem;
|
||||
QT_END_NAMESPACE
|
||||
|
||||
|
||||
class VideoItem;
|
||||
|
||||
class VideoPlayer : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
@@ -76,7 +74,7 @@ private slots:
|
||||
|
||||
private:
|
||||
QMediaPlayer mediaPlayer;
|
||||
VideoItem *videoItem;
|
||||
QGraphicsVideoItem *videoItem;
|
||||
QAbstractButton *playButton;
|
||||
QSlider *positionSlider;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user