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

Reply via email to