PDA

View Full Version : Button border cropped to rectangle when icon image added



Ishmael
23rd May 2010, 23:53
When I set the size of the icon on a button larger than 20 pixels in the height dimension, the standard rounded border disappears and turns into an ugly square box (see attached image). How do I get a normal looking button with a large icon? Thanks for your help!
4671

tbscope
24th May 2010, 12:57
I guess your widget is not one of the allowed widget sizes on a mac:


Widget size - Mac OS X allows widgets to have specific fixed sizes. Qt does not fully implement this behavior so as to maintain cross-platform compatibility. As a result some widgets sizes may be inappropriate (and subsequently not rendered correctly by the HITheme APIs).The QWidget::sizeHint() will return the appropriate size for many managed widgets (widgets enumerated in QStyle::ContentsType).