Skip to main content

qt-material-icons

PyPI version Python License Ruff ty

A Python library that enables Material Symbols / Material Icons by Google to be used in Qt using PySide.

Header

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)

Source distribution for qt-material-icons 0.5.2
File Size Uploaded
qt_material_icons-0.5.2.tar.gz 20.7 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for qt-material-icons 0.5.2
File Interpreter ABI Platform
qt_material_icons-0.5.2-py3-none-any.whl Python 3 none any Details

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 log

Release 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 log

Release history Release notifications | RSS feed

This release

0.5.2 This release

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page