Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

FontAwesome icons in PyQt and PySide applications

Project description

Latest PyPI version Number of PyPI downloads Supported python version Travis-CI build status

QtAwesome - Iconic Fonts in PyQt and PySide applications


QtAwesome enables iconic fonts such as Font Awesome and Elusive Icons in PyQt and PySide applications.

It is a port to Python - PyQt / PySide of the QtAwesome C++ library by Rick Blommers.


MIT License. Copyright 2015 - The Spyder development team

The Font Awesome and Elusive Icons fonts are licensed under the SIL Open Font License.


pip install qtawesome


import qtawesome as qta
  • Use Font Awesome and Elusive Icons.
# Get icons by name.
fa_icon = qta.icon('fa.flag')
fa_button = QtGui.QPushButton(fa_icon, 'Font Awesome!')

asl_icon = qta.icon('ei.asl')
elusive_button = QtGui.QPushButton(asl_icon, 'Elusive Icons!')
  • Apply some styling
styling_icon = qta.icon('',
music_button = QtGui.QPushButton(styling_icon, 'Styling')
  • Stack multiple icons
# Stack icons
camera_ban = qta.icon_stack(['', 'fa.ban'],
                            options=[{'scale_factor': 0.5,
                                      'active': ''},
                                     {'color': 'red'}])
stack_button = QtGui.QPushButton(camera_ban, 'Stack')
stack_button.setIconSize(QtCore.QSize(32, 32))
  • Animations
# Spin icons
spin_button = QtGui.QPushButton(' Spinning icon')
spin_icon = qta.icon('fa.spinner', color='red',

Other features

  • The API is pluggable so as to enable custom painters and animations.
  • While QtAwesome embeds Font Awesome and Elusive Icons, it can also be used with other iconic fonts. A load_font function is available. A ttf font and a json character map for icon names must be provided.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
QtAwesome-0.1.5.tar.gz (138.2 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page