We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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;`
The text was updated successfully, but these errors were encountered:
👍
Sorry, something went wrong.
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.
No branches or pull requests
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
};
The text was updated successfully, but these errors were encountered: