Skip to main content

qt-material-icons

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.1

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.1
File Size Uploaded
qt_material_icons-0.5.1.tar.gz 20.6 MB Details

Built distribution (wheel)

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

Total release size: 41.8 MB

Release files / qt_material_icons-0.5.1.tar.gz

Download URL qt_material_icons-0.5.1.tar.gz
Size 20.6 MB
Tags Source
SHA-256 checksum
How to use checksums
1a67dbae65df46e2ff577312b960a29f416eb4cc6cd236d529e14a6cd5d76bdf
BLAKE2b-256 checksum
How to use checksums
e2fea0f918f4e815628cf54c779e5a5244258deb3a33b5a64b861c64bfe6f60d
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 Sep 27, 2026.

Transparency log

Release files / qt_material_icons-0.5.1-py3-none-any.whl

Download URL qt_material_icons-0.5.1-py3-none-any.whl
Size 21.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
448dc8cb1b6bd5f935ca9fdd4eac1a95efade1ef6506c26e23512628080e3eb7
BLAKE2b-256 checksum
How to use checksums
335149f6feb934070052e98d43d41f3fe8bcfd0703089e85464cb5ba7035536a
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 Sep 27, 2026.

Transparency log

Release history Release notifications | RSS feed

0.5.2

2 release files

This release

0.5.1 This release

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