Hello all, as of right now my program has a main widget, which has lots of child widgets. These child widgets are painted onto the mainwidget and are transparent; so whenever the main widget gets a paintEvent the childwidgets also receive a paintEvent.

My question is as follows: some of these child widgets overlap and I need to be able to let the user select which widget gets painted on top of the others (so one widget is in the foreground) because this top widget needs to be able to receive mouseEvents...and if a widget is not on top and is covered by another widget it will not get these mouse events...thus I need to know how to change the paint/layer order.

Any help would be appreciated.



Jonathan