Unsolved How to draw a widget on top of all other widgets on Mac (where Qt::WA_PaintOnScreen doesn't work)?
-
I use Qt 5.5 and I've noticed that my floating widget, which is supposed to be drawn on top of everything else, no longer works properly. I call
raise()
on it, but it still obscured by some widgets on the screen (while it is being painted over others as expected). More specifically, I'm having difficulties painting over aQGlWidget
. Works fine on Windows, but not on Mac.I also used to use the
Qt::WA_PaintOnScreen
attribute, but that doesn't work on Mac any more. What are my options? -
Hi,
Do you have an example that reproduces this ?
-
@SGaist, I do now! Here it is.
By moving the splitter left or right you can observe that my widget is painted over QTextEdit no problem, but cannot be painted over QGLWidget. I'll be very happy if you can figure out how to paint my widget on top of EVERYTHING!
-
@Violet-Giraffe
For what it's worth, it's working on Ubuntu 14.04, with Unity, using Qt 5.3.0. -
@ValentinMichelet, the project where I need this to work doesn't run on Linux so I wouldn't know, but it works on Windows and does not work on OS X with Qt 5.5.1.
-
Might be related to the OpenGL handling on OS X since it works fine when you have two QWidgets.