FontAwesome.pri - Install Font Awesome via qpm


  • Qt Champions 2016

    Project: https://github.com/benlau/fontawesome.pri
    License: Apache 2.0 (For source code only)

    FontAwesome.pri

    FontAwesome.pri bundle FontAwesome font and icon table into a single module for QML project.

    Features

    1. Installable by qpm
    2. Work well with Qt Quick Designer. Able to show icons in "Design" mode
    3. Auto completion of icon name works in Qt Creator.

    Example

    import QtQuick 2.0
    import FontAwesome 1.0
    
    Text {
     text: FontAwesome.addressBook
     font.family: FontAwesome.fontFamily
    }
    

    Screenshot

    Installation

    Install FontAwesome.pri by qpm:

    qpm install font.awesome.pri
    

    Add "qrc://" to your QML import path

    engine.addImportPath("qrc:///"); // QQmlEngine
    

    For complete icon list, please check the FontAwesome.qml file.


  • Lifetime Qt Champion

    Hi,

    Thanks for sharing !


Log in to reply