pi88el
3rd January 2012, 17:11
Hi guys.
I have a problem when i’m adding a video into a scene, the colors are shifting (blue turns to red and red turns to blue).
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();
Do anybody has an idea why this is happening.
thanks
PS.: Sorry for my bad english.
I have a problem when i’m adding a video into a scene, the colors are shifting (blue turns to red and red turns to blue).
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();
Do anybody has an idea why this is happening.
thanks
PS.: Sorry for my bad english.