Some reason the QStyleOptionButton is not painted on OSX, works great on linux
//QListView *view = qobject_cast<QListView*>(parent());
//view->style()->drawControl(QStyle::CE_PushButton, &button, painter);
QStyleOptionButton button;
//QListView *view = qobject_cast<QListView*>(parent());
//view->style()->drawControl(QStyle::CE_PushButton, &button, painter);
QApplication::style()->drawControl(QStyle::CE_PushButton, &button, painter);
To copy to clipboard, switch view to plain text mode
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.
Bookmarks