# Locate .qrc file and run this command into terminal it will generate .py file. # Now import icon_rc file >> pyrcc5 icons.qrc -o icon_rc.py