QtAwesome icon indicating copy to clipboard operation
QtAwesome copied to clipboard

Add qml support

Open demiantres opened this issue 6 years ago • 3 comments

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;`

demiantres avatar Sep 17 '19 03:09 demiantres

👍

nuttyartist avatar Jun 08 '23 10:06 nuttyartist

More info about this: https://doc.qt.io/qt-6/qtqml-tutorials-extending-qml-example.html

gamecreature avatar Jun 23 '23 17:06 gamecreature

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.

gamecreature avatar Oct 29 '23 11:10 gamecreature