I am looking through the documentation at:
I can put the line IDList.append(item.data())
into my code, and print that as the correct value. But weirdly, after that line, it gives me this error:
TypeError: QTableWidgetItem.data(int): not enough arguments
I don't know why the error message comes after the print line, but I don't think that should be important. What does the documentation mean by "int role"? Can you give an example, please?