QAction with icon in pyqt code example Example: create QAction with icon in pyqt test = QAction(QIcon("myIcon.svg"), "new Item", self)