QtAwesome is a Python library that provides FontAwesome, Material Design, and other icon fonts for PyQt and PySide applications. It simplifies the integration of scalable vector icons, allowing developers to easily use them in buttons, menus, and other UI elements. The library is actively maintained, currently at version 1.4.2, and receives regular updates, typically every few months, incorporating new features, bug fixes, and improved Qt binding compatibility.
pip install qtawesomeVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to initialize a Qt application, create an icon using `qtawesome`, and display it within a `QLabel`. It uses `qtpy.QtWidgets.QApplication` for compatibility across different Qt bindings.
Use icons from 'fa5s', 'fa5r', 'fa5b', 'mdi', 'el', 'fc', 'go', 'ri', 'bi', 'io', 'md' collections. Refer to `qtawesome.icon('fa5s.icon_name')`.Ensure appropriate user permissions for font installation. For persistent issues, manually install the required icon fonts (e.g., Font Awesome, Material Design Icons) into your system's font directory. QtAwesome versions >=1.4.0 include fallback mechanisms and utilities to check bundled font info.
Upgrade to `qtawesome>=1.4.1` for improved compatibility and stability with PySide6 and recent PySide2 versions. Ensure `qtpy` is also up to date.