QtAwesome
QtAwesome copied to clipboard
Add qml support
Add support for using the library from Qml, for instance (Font Awesome 5 branch):
`{ Q_OBJECT Q_ENUMS(FontStyle)
public: enum FontStyle { /// solid icons Stfas = style::stfas, /// regular icons Stfar = style::stfar, #ifdef FONT_AWESOME_PRO /// light icons Stfal = style::stfal, /// duotone icons Stfad = style::stfad, #endif /// brands icons Stfab = style::stfab };
Q_INVOKABLE QString getFontName(FontStyle fontStyle = Stfas) const;
Q_INVOKABLE QString getIcon(const QString &iconName, FontStyle fontStyle = Stfas) const;`
👍
More info about this: https://doc.qt.io/qt-6/qtqml-tutorials-extending-qml-example.html
In don't use QML myself. If somebody can build in support for it and write a QML sample app, I can try to integrate it into the project.