About directdraw, Qt::FramelessWindowHint and Qt::WA_TranslucentBackground
General and Desktop
4
Posts
4
Posters
3.6k
Views
1
Watching
-
Hi all,
recently, i have a project about dispaly video, and this project use the directdraw to display the video on the qwidget with QWidget::winId() which is a child widget in the QMainwindow, and it works.
but now there is a problem, when i use setWindowFlags(Qt::FramelessWindowHint | Qt::WindowMinimizeButtonHint ) and setAttribute(Qt::WA_TranslucentBackground) in the qmainwindow, the child widget dose not work, the video can not display, is anybody can help me? thank you! -
hi try this
videoScreen->setWindowFlags(videoScreen->windowFlags()| Qt::FramelessWindowHint);
and
setAttribute(Qt::WA_TranslucentBackground);
with
setAttribute(Qt::WA_NoSystemBackground,false); setStyleSheet("background-color: rgba(0,0,0,100%);" "border:1px solid gray;" "border-radius: 0px;" );working fine..