Transparent Window with Qt Widgets
-
wrote on 5 Mar 2024, 17:02 last edited by
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 -
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.gitwrote on 5 Mar 2024, 17:46 last edited by@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. -
@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.wrote on 5 Mar 2024, 17:57 last edited by@Pl45m4 translucent background and frameless window are not sufficient to achieve it.You can try by yourself
-
@Pl45m4 translucent background and frameless window are not sufficient to achieve it.You can try by yourself
wrote on 5 Mar 2024, 19:49 last edited byYes, in addition you painted the window blue with a transparent gradient.
-
wrote on 6 Mar 2024, 13:41 last edited by
Hi,
Thanks for sharing.
You might find these links useful, they contain more information about this:
1/5