hhartz / fontawesome

FontAwesome wrapper for QML including button, text and icon enumerations

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fontawesome

FontAwesome wrapper for QML including button, text and icon enumerations

To use, install the module and add

require(vendor/vendor.pri)

to your .pro file, and call QPM_INIT(engine) before loading your initial qml source.

To use an icon, import the package;

import com.cutehacks.fontawesome 1.0

add a FAText element with the appropriate icon, like this;

FAText {
        text: icons.ambulance
        anchors.centerIn: parent
        font.pixelSize: 72
        color: "steelblue"
    }

To see all available icons, create a Gallery element;

Gallery {
        anchors.fill: parent
    }

About

FontAwesome wrapper for QML including button, text and icon enumerations

License:MIT License


Languages

Language:QML 98.4%Language:Shell 1.4%Language:QMake 0.2%