Solved add row to qtablewidget with button
-
Hello,
I want to add an empty row that the user will use to add as much row as he wants.
The key thing is, the rows have to be empty. I haven't been able to do this with the following code:def add_row(self): rowPosition = self.table.rowCount() table.insertRow(rowPosition)
I get this error:
<class 'NameError'> name 'table' is not defined <traceback object at 0x000001D8286B4940>
-
you just forgot
self.
beforetable.insertRow
-
you just forgot
self.
beforetable.insertRow
-
@VRonin I cant believe I made this rookie mistake. Thank you so much. Cant believe it lol