Transparent Window with Qt Widgets
-
Hello. I have found a way to make a transparent window with Qt.I mean with transparent background.From the window you can see background elements but not click on them.
It can help those interested in designing windows with Qt
if you want to contribute, check
https://github.com/jordanprog86/QtTransparentWindow.git -
@Ronel_qtmaster said in Transparent Window with Qt Widgets:
I have found a way to make a transparent window with Qt
I mean... using
setAttribute(Qt::WA_TranslucentBackground); setWindowFlags(Qt::FramelessWindowHint);
is not a groundbreaking discovery :)
From the window you can see background elements but not click on them
Yes, because the
QWindow
/QWidget
is still there, even when it's transparent and you can see through. It's still the top-level window. -
Yes, in addition you painted the window blue with a transparent gradient.
-
Hi,
Thanks for sharing.
You might find these links useful, they contain more information about this: