How to check if the QTableWidget has similar rows
Hi All
I have created a table using QTableWidget.Which has 10 columns.
How to check wether any of rows has similar data.
6 replies
That would depend on your definition of “similar”. If you mean “identical”, then you would first sort the data in the widget, and then iterate over the rows, first comparing the cell in the column on which you sorted, and then (if they match) the other cells untill they either do not match, or you reach the end of your columns (and you found a pair of matching rows).
You must log in to post a reply. Not a member yet? Register here!


