I have a GUI I created with QtDesigner that includes some images for buttons. Within QtDesigner they are stored together in a resource file. When I run pyside-uic -x ui_mainWindow.ui -o ui_mainWindow.py
or pyside-uic -o ui_mainWindow.py ui_mainWindow.ui
, the resulting python code includes lines like:
icon.addPixmap(QtGui.QPixmap(":/assets/CU LASP.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
but I want it to say
icon.addPixmap(QtGui.QPixmap("./assets/CU LASP.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
(just use a ./ instead of a :/). When I run the python code with the :/, the images don't show up. When I do a hard code change to ./, the images do show up.