Skip to content

sthlm58/QtMaterialDesignIcons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Qt + Material Design Icons

Material Design Icons binding for Qt (Widgets and QML)

Let's say you are looking for an icon to use in your Qt application. You want something depicting an eye and you found it in the Material Design Icons collection:

Eye icon from Material Design Icons

With this library, you can easily use it by just calling

material::pixmap("eye");

And with a few more lines for Qt Widgets:

auto label = new QLabel;
label->setPixmap(material::pixmap("eye", QSize(32, 32), Qt::darkGray));

label->show();

You got this:
Resulting Pixmap in a Window

Or maybe you want to use in in QML? Go ahead with:

MaterialDesignIcon {
    name: "eye"
    color: "darkGray"
    size: 32
}

It's that simple!

Currently contains: Material Design Icons 2.5.94

How to?

Widgets:

  1. Include header and source files into your build process
  2. Include resources (Qt resource file and the font file) into your build process
  3. Start using it.

QML:

  1. Include MaterialDesignIcon.qml and MaterialDesignIconGlyphs.js
  2. Include resources (Qt resource file and the font file) into your build process
  3. Start using it.

License

Code - MIT

Templates - WTFPL

Community Icons - SIL Open Font License 1.1

Google Material Design Icons - Apache License 2.0

About

Material Design Icons binding for Qt

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published