Well, then just create the "top" widget to be a child of your form (like your "background" widget) and set its Z order to be in front of your "background" widget, and don't place it in a layout, rather position it manually.
Well, then just create the "top" widget to be a child of your form (like your "background" widget) and set its Z order to be in front of your "background" widget, and don't place it in a layout, rather position it manually.
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
mmm... so how could I set the background widget to resize automatically with the form through manually size settings?
Reimplement resizeEvent() for the top-level widget or put the background widget in a layout. In general I think you are trying to do something terribly wrong here. I think your "background" should be your "foreground" and your "foreground" should be a child widget (or child widgets) of your "background".
Bookmarks