migel
19th June 2012, 20:16
Some reason the QStyleOptionButton is not painted on OSX, works great on linux
QStyleOptionButton button;
//QListView *view = qobject_cast<QListView*>(parent());
//view->style()->drawControl(QStyle::CE_PushButton, &button, painter);
QApplication::style()->drawControl(QStyle::CE_PushButton, &button, painter);
Any ideas ?
Thanks.
Added after 1 15 minutes:
Using QStyle::CE_CheckBox works, but it draws the checkbox, I checked in Qt of 4.7.3 and 4.8.1.
QStyleOptionButton button;
//QListView *view = qobject_cast<QListView*>(parent());
//view->style()->drawControl(QStyle::CE_PushButton, &button, painter);
QApplication::style()->drawControl(QStyle::CE_PushButton, &button, painter);
Any ideas ?
Thanks.
Added after 1 15 minutes:
Using QStyle::CE_CheckBox works, but it draws the checkbox, I checked in Qt of 4.7.3 and 4.8.1.