Thanx for the answers everyone, some more testing shows that it appears to be related to jpgs. pngs display fine. but jpgs fail. no matter where they come from, no matter where I try to display them (on a button, StandardItem, GraphicsView).
can someone give this a short try and confirm? and again: all this (displaying jpgs) is working fine in both maya and nuke... Thanx again in advance Philipp > "philipp.oeser" <[email protected]> hat am 5. Februar 2013 um 20:07 > geschrieben: > > Hi list, > > first of all: thanx again for bringing PyQT to Softimage! > (it's just so much nicer to be able to do UIs for SI, Nuke and Maya in _one_ > go :)) > > But: I was wondering if someone else is having trouble getting QIcons to show > in PyQT for Softimage? > I have some code that runs fine in Maya and Nuke (it shows the icons with > QStandardItems in a QTreeView) > but the exact same code/ui-file just doesnt show the Icons in Softimage... > > ======= something like this =============== > oTasksModel = QtGui.QStandardItemModel() > oRootItem = oTasksModel.invisibleRootItem() > self.ui.UI_tv_Tasks.setModel(oTasksModel) > > sTask = 'taskname' > oTaskItem = QtGui.QStandardItem(sTask) > > sFullPath = 'validpath' > oIcon = QtGui.QIcon(sFullPath) > oTaskItem.setIcon(oIcon) > > # it seems to be taken, if you print out oTaskItem.icon(), it will print > # <PyQt4.QtGui.QIcon object at 0x000....> > > oRootItem.appendRow(oTaskItem) > ================================== > > Has this been done succesfully? Or can someone confirm it is not working? > Should I dig deeper? > > Thanx in advance > Philipp > > P.S. using PyQt-Py2.6-x64-gpl-4.9.5-1 and PyQtForSoftimage_beta5 >

