What do you mean by "above"?
What do you mean by "above"?
Treat every widget as a layer. Red rectangles are shapes drawn with QPainter, the rest are widgets. QPainter draws everything on the window's layer, beneath all widgets. How to make widgets not cover my red rectangles?
window.png
Maybe: in the paint event handler of your window, first call the base implementation, then draw yourself.
Cheers,
_
Hello Grzyboo,
Did you find the solution to your question ?
Even I am interested in the same.
It would be great if you or someone else can help.
Thanks.
Anda_skoa had a good hint.
You should also consider if QGraphicsView is a better approach to your particular problem.
Bookmarks