-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It seems not work in the menu? #10
Comments
Did you try this on your action? action->setIconVisibleInMenu(true); Qt hide's menu icons by default on OSX |
That is strange...
After i add this, the icon still can not be seem...anything i missed? |
Very strange. The good new is the same thing happens over here! QAction* action = new QAction("Test",&w);
// action->setIcon(awesome->icon(fa::beer)); // < this icon doesn't show up
action->setIcon( QApplication::style()->standardIcon(QStyle::SP_MessageBoxWarning) ); // < this one does
action->setIconVisibleInMenu(true); |
I've found a workaround for this issue: action->setIcon(awesome->icon(fa::beer).pixmap(32,32)); (QPixmap is implicitly converted to QIcon) It looks like the QMenu of Mac OS X doesn't support QIconEngine based icons. |
Yes, it works! |
I don't know if it's Mac OS X Related. |
:) Seems we are all using mac, nobody use windows. |
I've just checked the situation on Windows 10. There it simply works. |
@gamecreature , some users have experienced issues on Mac in pyqtawesome as well. I will let you know if we come up with a nice solution. |
@SylvainCorlay, Thanks! I would really appreciate that! |
The OS X issue we had in the python port is fixed by SylvainCorlay/qtawesome@40a7bcc . Rather than |
Thanks for this info!! I will check it out later today! |
Tried the addApplicationFont, but got no results with the MainMenu... So no solution yet... (except for adding the .pixmap( .. ) method for creating a pixmap QIcon) |
I would guess that this bug (icon not shown in menu item) is related to QTBUG 55932. |
@drydh Yep it sure looks like it's related. Thanks for your comment! |
I set it in the QAction,
And it appears in toolbar, but in menu item, it just leave empty.
Mac OSX 10.10.2 / Qt 5.3.1
The text was updated successfully, but these errors were encountered: