Skip to content

September 23, 2015

List of Qt Icons

by Joe Kuan

I was given a job to smarten up a GUI program which is implemented in PyQt. One of the tasks is to put up some icons in the user interface. I know that Qt includes it’s own set of icons. However, I can’t find any page online showing what these icons look like. So I wrote a little program to list all the available Qt icons. Here is the screenshot:

List of Qt icons

The button names are the QStyle macro names to create QIcon objects.

Here is the source code if you want to run the program on your PC.

import sys
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *

class Widget(QWidget):
    def __init__(self, parent= None):
        super(Widget, self).__init__()

        icons = [

        colSize = 4
        layout = QGridLayout()

        count = 0
        for i in icons:
            btn = QPushButton(i)
            btn.setIcon(, i)))

            layout.addWidget(btn, count / colSize, count % colSize)
            count += 1
if __name__ == '__main__':
    app = QApplication(sys.argv)
    dialog = Widget()
Read more from Programming, Python, Qt

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Note: HTML is allowed. Your email address will never be published.

Subscribe to comments

%d bloggers like this: