Hi,
I am trying to play video to LCD display via display drivers and on top of that want to display Qt screens. So want to make a portion of Qt screen to be completely transparent and show the background video.
My widget hierarchy is as MainWindow->centralwidget->videowidget.
Tried setting stylesheet with "background:transparent;" for all three widgets and set below attributes to the mainwindow but not working.
setWindowFlags(Qt::FramelessWindowHint);
setAttribute(Qt::WA_NoSystemBackground, true);
setAttribute(Qt::WA_TranslucentBackground, true);
setAttribute(Qt::WA_TransparentForMouseEvents, true);
setAttribute(Qt::WA_OpaquePaintEvent, false);
videowidget is shown in green color and background video is hidden.
Searched other forums and tried to set "QWSServer::setBackground( QBrush(Qt::transparent) );" but still no help. Only the green screen turned black and still the video is hidden.
I am using Qt 4.8 [yeah I know its older version ].
My question is,
1. Whether its possible to create completely transparent Qt screens?
2. Whether I have to use GraphicsView or Widgets for this type of use case?
3. Any other options I have to set to make it work?
Really appreciate for any help here. Thank you.
Bookmarks