[PyQt] inheriting QTreeWidgetItem Question
dizou
di_zou at yahoo.com
Thu Nov 12 18:36:34 GMT 2009
I am trying to get a class i wrote that inherits QTreeWidgetItem to display
on the QTreeWidget. If I used just the normal QTreeWidgetItem I would have
code like this:
tree = QTreeWidgetItem(self)
tree.setFlags(...)
tree.setIcon(...)
tree.setText(...)
However I have a class that inherits the QTreeWidgetItem class:
class A(QTreeWidgetItem):
def __init__(self):
QTreeWidgetItem.__init__(self)
Then when I do this:
tree = A(self)
tree.setFlags(...)
tree.setIcon(...)
tree.setText(...)
nothing is displayed in the QTreeWidget. What do I have to do to get the
items to be displayed?
--
View this message in context: http://old.nabble.com/inheriting-QTreeWidgetItem-Question-tp26324003p26324003.html
Sent from the PyQt mailing list archive at Nabble.com.
More information about the PyQt
mailing list