[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#433389: libqt4-core: background images are not set by QPushButton anymore



Besides the "border: none" that you should add to prevent native borders
drawing over your image (this may be a bug), only selected widget
classes are eligible to have styled background. Buttons are not in that
list. Then, while pure QWidgets can have background images, any derived
custom class with Q_OBJECT can't.

Forcing

     w->setAttribute(Qt::WA_StyledBackground, true);

in qstylesheetstyle.cpp will allow you to use background images. I
haven't noticed any ill effects yet. I don't know why upstream has
limited this however.

Apparently, this hasn't been fixed in upstream snapshots yet.

Note: the bug described in
http://trolltech.com/developer/task-tracker/index_html?method=entry&id=170499
has nothing to do with this one. It isn't a Designer-only problem.





Reply to: