PDA

View Full Version : QFrame and its background



high_flyer
20th April 2006, 20:32
Hi,

I have a QFrame on a form in designer.
If I choose a background color for that frame, the frame gets the background color in the design mode but when I do preview, the background is not visible, meaning, the frame gets to be transperent and and the form under it has it original color (ok that actually makes sense for a *frame*.
It behaves the same when the app is running.
But is there a way to have a background for a frame so that is will be visible?

Qt4 SUSE10.
Thanks.

jpn
20th April 2006, 20:48
Set autoFillBackground property to true.

newby
23rd June 2006, 20:32
Thank you thank you thank you sooooooooo much. I have spent 2 days trying to change this in Qt4 and I didn't need it in Qt3.