Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Color shift after adding Phonon::VideoPlayer in QGraphicsScene
Qt 6.11 is out! See what's new in the release blog

Color shift after adding Phonon::VideoPlayer in QGraphicsScene

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    pi88el
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • J Offline
      J Offline
      jdob
      wrote on last edited by
      #2

      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)

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved