qt-material-icons
A Python library that enables Material Symbols / Material Icons by Google to be used in Qt using PySide.
Installation
Install using pip:
pip install qt-material-icons
The available Qt extras are pyside6, pyside2, and qtpy.
Usage
from PySide6 import QtGui
from qt_material_icons import MaterialIcon
# Create a QIcon object
icon = MaterialIcon('search')
# Set a color
color = QtGui.QColor('red')
icon.set_color(color)
# Set a color for a state, for example when a button is checked
icon.set_color(color, state=QtGui.QIcon.State.On)
# Set a different icon for a state, for example when a button is checked
toggle_icon = MaterialIcon('toggle_off')
toggle_icon_on = MaterialIcon('toggle_on')
toggle_icon.set_icon(toggle_icon_on, state=QtGui.QIcon.State.On)
Refer to Google Material Symbols & Icons for browsing icons.
Localize qt-material-icons
Since the qt-material-icons package is quite large with all the resource files, a cli is provided to extract
specific icons so they can be shipped alongside the package.
The qtmaterialicons cli requires Python 3.9 or later.
Install as a dev dependency:
# pyproject.toml
[project.optional-dependencies]
dev = ["qt-material-icons"]
Use the cli to extract icons:
qtmaterialicons -o mypackage --styles outlined rounded --sizes 20 24 --names home computer search favorite
Then import in your repo:
from mypackage.qt_material_icons import MaterialIcon
Contributing
To contribute please refer to the Contributing Guide.
License
MIT License. Copyright 2024 - Beat Reichenbach. See the License file for details.
The Material Symbols / Material Icons are licensed under Apache License Version 2.0.
Metadata
Release files for qt-material-icons 0.5.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| qt_material_icons-0.5.2.tar.gz | 20.7 MB | With provenance | Details for qt_material_icons-0.5.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| qt_material_icons-0.5.2-py3-none-any.whl | Python 3 | none | any | Details for qt_material_icons-0.5.2-py3-none-any.whl |
Total release size: 41.8 MB
Release files / qt_material_icons-0.5.2.tar.gz
| Download URL | qt_material_icons-0.5.2.tar.gz |
|---|---|
| Size | 20.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3ebc917f0e6499222d6aa768febf0027f9526c9e9882d9099905651c2b5d6e7c
|
|
BLAKE2b-256 checksum How to use checksums |
b3918e44b10a63d7ce434851bba248388f78ae142d43e2e6ef9b8c45d8edb897
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 1, 2026.
Transparency logRelease files / qt_material_icons-0.5.2-py3-none-any.whl
| Download URL | qt_material_icons-0.5.2-py3-none-any.whl |
|---|---|
| Size | 21.2 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a6b526ea25d3747319c319bfc8f4fecaa77061b566a403dec0d2ea796c48ac1f
|
|
BLAKE2b-256 checksum How to use checksums |
957c7aace56c68b69940dc5063e472f9b5c4d97e5bdcd3ba02eaad3fae8e70a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 1, 2026.
Transparency logSecurity for qt-material-icons 0.5.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for qt_material_icons-0.5.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 1, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.