mirror of
https://github.com/gamecreature/QtAwesome.git
synced 2024-11-15 13:35:44 +08:00
Updated README.md, added workaround for missing icons on Mac OS X in the main menu.
This commit is contained in:
parent
a88db850ae
commit
b668bdfa27
15
README.md
15
README.md
@ -164,6 +164,21 @@ Contact
|
||||
* website: [http://blommersit.nl](http://blommersit.nl) (warning Dutch content ahead)
|
||||
* github: [https://github.com/gamecreature/QtAwesome](https://github.com/gamecreature/QtAwesome)
|
||||
|
||||
|
||||
Known issues and workarounds
|
||||
----------------------------
|
||||
|
||||
On Mac OS X, placing an qtAwesome icon in QMainWindow menu, doesn't work directly.
|
||||
See the following issue: [https://github.com/gamecreature/QtAwesome/issues/10]
|
||||
|
||||
A workaround for this problem it to convert it to a Pixmap icon like this:
|
||||
|
||||
```c++
|
||||
QAction* menuAction = new QAction("test");
|
||||
menuAction->setIcon( awesome->icon(fa::beer).pixmap(32,32)) );
|
||||
```
|
||||
|
||||
|
||||
Remarks
|
||||
-------
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user