Paint/Draw on top of docked widgets in QDodckWidget
I have a class in Qt that inherits QDockWidget. And that class contains another widget. Is there any possibility to define a function in my QDockWidget inherited class that draws stuff on top of the contained widget? Like the painting to be independent of the contained widget but to be linked to the inherited class. Thank you Sure it's possible. It is fairly simple to do, in fact. You need to place a child widget that sits on top of everything else in your QDockWidget . To do it so, it must be the last child widget you add to your dockwidget. That widget must not to draw its background, and it