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");
    test->load(source);

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

    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 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".

    videoWidget->setHue(1)


Log in to reply
 

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