I have an application written with pyside where a user can load an image, via either drag&drop or through a dialog box, and the image name and a thumbnail will show up in a QTreeWidget. When I run normally (within Eclipse) everything works fine. When I package the project with py2exe it no longer displays the image. I assume it is because py2exe is not finding the image libraries used by pyside. I do not know enough about pyside and py2exe to know if this is the actual issue. After doing some searches I found a lot of information on people not able to display images that are apart of the application (icons) which I have already resolved (Edit - These were png files which is why they showed up after I bundled the images in the py2exe step).
I am using QPixMap to load the thumbnail image into a QIcon. I then add the icon to a QTreeWidgetItem.
icon = QIcon()
icon.addPixmap(QPixmap(url),QIcon.Normal,QIcon.Off)
item = QTreeWidgetItem([...])
item.setIcon(0,icon)