PDA

View Full Version : QFrame background color overpaints the content widgets



cranberries
12th August 2015, 08:44
Hi,
There is a horizontal layout which includes QLabels ( used to dislay images ). I've created a QFrame instance and set its layout to this layout. When I set background color of QFrame to black, QLabels are not displayed. It overpaints the content widgets on the layout.
Could you please help about it ?

anda_skoa
12th August 2015, 10:30
So the images are displayed when the background color is not black?
Or are you currently not displaying images, only some placeholder text?

Cheers,
_

cranberries
12th August 2015, 12:44
Yes, the images ( displayed via QLabel ) are displayed when the background color is white. The images ( themselves ) can not be displayed, not text.

anda_skoa
12th August 2015, 14:39
Ok, strange.
What if you call setAutoFillBackground(true) on the labels?

Otherwise you'll have to post some code.

Cheers,
_