Issue
I need to get the row number of a selected row in the QTableWidget. How do I get the number as an int?
How can I make the variable change with what row I'm clicking?
Solution
To change the variable based on the selected row, you can connect the signal QTableWidget.cellClicked(row, column)
to your own slot.
To get the currently selected row, use QTableWidget.currentRow()
Answered By - Minh
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.