2008/11/3 Min Li <[EMAIL PROTECTED]>: > I want to store the selected item in the QTreeWidget into a local variable. > I use the <variable = self.treeWidget.currentItem() > > print variable> > > to do this task. However, it returns the following sentences. > > '<PyQt4.QtGui.QTreeWidgetItem object at 0x0405CE88> > <PyQt4.QtGui.QTreeWidgetItem object at 0x0407F3D8>'
Reading the documentation about QTreeWidgetItem, you can use the method text(column) that returns a QString object. column is the number of the column from which you want to get text. Simone _______________________________________________ PyQt mailing list [email protected] http://www.riverbankcomputing.com/mailman/listinfo/pyqt
