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