Loading QIcons using pkgutil
问题 I am attempting to load in images I can't figure out how to load the images using pkgutil.get_data() which I would prefer to use since I don't want to have fixed paths in my code. Currently, I have something like this, which works only when running out of the same folder. ... self.imagePixmap = QtGui.QPixmap("img/myImage.png") ... The issue then is, if you run the script from other folders the path is messed up and you get this error: QPixmap::scaled: Pixmap is a null pixmap I would like to