PDA

View Full Version : Clear background color a tabwidget



smemamian
5th July 2013, 18:04
hi

How do I clear the background color tabwidget?

9274

I want to clear white color background.

ChrisW67
9th July 2013, 03:37
You are (I guess) applying an image background to the top-level window without considering how that background cascades down to child widgets. Target your top-level background by (a unique) object name and it will not cascade to child widgets (which in this case will get a default, usually white, background).

See Style Sheet Usage, Customizing the Foreground and Background Colors

zgulser
9th July 2013, 23:11
By applying the following snippet to your widget's style;


QWidget#your_widget{background-image:"your-image.png"}

This makes the background image applied for solely the regarding widget - not the widget and it's children.