Translucent background hide whole window
-
Hi,
At first, My english is not very well, I'm sorry.
I have a very annoying problem. Everytime I set a tranclucent background to my widget (a class that inherits QWidget), it hides completly. What I want is a single QFrame that ist on the Widget. I'm on OSX and interesting is, that I can see the window as preview in mission control (in these little rectangles with Desktop1, Desktop2, etc.), but not on the real Desktop.
When I set the window opacity to a value that is not null, I can sea a transparent window, but then the frame is transparent, too. What can I do to fix that problem?
@ setWindowFlags(Qt::FramelessWindowHint);
setAttribute(Qt::WA_TranslucentBackground, true);
//setWindowOpacity(0.5);@Thank you
-Edit
by the way, the same code works on ubuntu.