Using Qt designer to set transparent background for qgis plugin dialog
-
wrote on 22 Nov 2019, 11:38 last edited by
I'm studying Qt designer to create UI for Qgis plugin. I'm wondering how to set transparent background for the dialog. In the image below there's an example to understand what I have in my mind. I'd like a dialog with just the slider, with transparent background, and, if it's possible, without the title bar. Thank you all
-
Hi and welcome to devnet,
You will have to write that in code. Set the
Qt::FramelessWindowHint
on your window flags. Since you are using python it will byQt.FramelessWindowHint
You can play with the Widgets WindowFlags example.
As for transparency, you can set the
Qt::WA_TranslucentBackground
attribute.@Denni-0 please refrain from answering with your hatred of Designer if you don't have anything related to the question to say.
1/2