QTableWidgetItem-list

Helvin helvinlui at gmail.com
Sun Sep 13 15:18:11 EDT 2009


Hi,

Could not find anything on this online, except the documentation,
which does not explain how to work with a QTableWidgetItem-list. How
do I get out what QWidgetTable.finditems found?

I have a string that I want to find in my table. I want to locate the
row it's in, then delete the row.
My code:

					foundList = table_points.findItems(str(picked_node),
QtCore.Qt.MatchExactly)
					inRow = self.ui.table_points.column(foundList)  # trying to
locate the row, but this does not work

where,
    table_points: my table
    picked_node:  an integer value I want to locate in table_points


Help MUCH appreciated!
Helvin
Newbie



More information about the Python-list mailing list