Logo Search packages:      
Sourcecode: qt4-x11 version File versions

bool QWidget::autoFillBackground [read, write, inherited]

whether the widget background is filled automatically

If enabled, this will cause Qt to fill the background using the widget's background role before invoking the paint event. The background role is defined by the widget's {palette}.

In addition, Windows are always filled with QPalette::Window, unless the WA_OpaquePaintEvent or WA_NoSystemBackground attributes are set.

Use this property with caution in conjunction with {Qt Style Sheets}. When a widget has a style sheet with a valid background or a border-image, this property is automatically disabled.
See also:
Qt::WA_OpaquePaintEvent, Qt::WA_NoSystemBackground

Definition at line 210 of file qwidget.h.

Generated by  Doxygen 1.6.0   Back to index