PDA

View Full Version : How to make overlapping widgets opaque ?



ada10
6th September 2010, 10:37
I have a mainwindow displaying some icons in a listview. I have another custom widget, which displays some images in a gridview. When I instantiate the custom widget as a child of the mainwindow & make it visible, it is displayed on top of the listview, it overlaps the listview & the empty spaces in the widget dont hide the listview.

The image below explains the scenario. The space above the customwidget should also be hidden ( i.e the listview icons must not be displayed ).

5144

How to go about this ?

nish
6th September 2010, 10:42
i think you should make the background palette of your custom widget to some color.

ada10
8th September 2010, 07:07
Thanks; this seems to be the only solution available for this problem

e8johan
9th September 2010, 10:06
You could set the autoFillBackground flag to false as well. Widgets aren't really ment to be overlapping, so you are bound to run into issues when trying such things.