Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
I want to be able to get row number of specific item from QTableWidget.
def getRowNumber(self): result = self.Table.findItems( self.QlineItemName.text(), QtCore.Qt.MatchFlag.MatchExactly)
The problem is that it returns a list rather than the row number. How to get row number.
@qtDevOps
Solution to the question
def getRowNumber(self): result = self.Table.findItems( self.QlineItemName.text(), QtCore.Qt.MatchFlag.MatchExactly) rowNumber = result[0].row() print(f"Row number : {rowNumber}")