Color shift after adding Phonon::VideoPlayer in QGraphicsScene

  • 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");

    QGraphicsView *view = new QGraphicsView(this);
    QGraphicsScene *scene = new QGraphicsScene(0);

    film = scene->addWidget(test);
    film->setGeometry(QRectF(0, 0, 600, 400));



    Do anybody has an idea why this is happening.


    PS.: Sorry for my bad english.

  • I ran into this same issue using Qt 4.71 on Linux. FWIW, I was able to work around it using a VideoWidget instead of VideoPlayer. This class has a setHue() method which allowed me to shift the hue back to "normal".


Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.