test = new Phonon::VideoPlayer(0);
Phonon::MediaSource source("test.avi");
test->load(source);
view->setScene(scene);
connect(view,
SIGNAL(customContextMenuRequested
(QPoint)),
this,
SLOT(rotate
(QPoint)));
//scene->addEllipse(0,0,100,100,QPen(Qt::red,10), Qt::black);
film = scene->addWidget(test);
film
->setGeometry
(QRectF(0,
0,
600,
400));
setCentralWidget(view);
test->play();
test = new Phonon::VideoPlayer(0);
Phonon::MediaSource source("test.avi");
test->load(source);
QGraphicsView *view = new QGraphicsView(this);
QGraphicsScene *scene = new QGraphicsScene(0);
view->setScene(scene);
connect(view, SIGNAL(customContextMenuRequested(QPoint)), this, SLOT(rotate(QPoint)));
//scene->addEllipse(0,0,100,100,QPen(Qt::red,10), Qt::black);
film = scene->addWidget(test);
film->setGeometry(QRectF(0, 0, 600, 400));
setCentralWidget(view);
test->play();
To copy to clipboard, switch view to plain text mode
Do anybody has an idea why this is happening.
Bookmarks