QTableWidgetItem-list

H

Helvin

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,197
Messages
2,571,040
Members
47,634
Latest member
RonnyBoelk

Latest Threads

Top