Materialicon.qml bundle Material Icons font and icon table into a single module for QML project.
- Installable by qpm
- Work well with Qt Quick Designer. Able to show icons in "Design" mode
- Auto completion of icon name works in Qt Creator.
The package is provided as a qpm package,
co.podzim.materialicon
.
To install:
- Install qpm (See GitHub - Installing, for windows see below)
- In your projects root directory, run
qpm install co.podzim.materialicon
- Include qpm to your project by adding
include(vendor/vendor.pri)
to your.pro
file
Check their GitHub - Usage for App Developers to learn more about qpm.
Important for Windows users: QPM Version 0.10.0 (the one you can download on the website) is currently broken on windows! It's already fixed in master, but not released yet. Until a newer versions gets released, you can download the latest dev build from here:
- https://storage.googleapis.com/www.qpm.io/download/latest/windows_amd64/qpm.exe
- https://storage.googleapis.com/www.qpm.io/download/latest/windows_386/qpm.exe
- Add
MaterialiconLoader
to yourmain.qml
import QtQuick 2.0
import Materialicon 1.0
MaterialiconLoader {}
- Use
Materialicon
in other views
import QtQuick 2.5
import Materialicon 1.0
Materialicon {
id: icon
x: 162
y: 162
source: "favorite"
size: 64
color: 'black'
}
See codepoints