Answer the question
In order to leave comments, you need to log in
How to delete row in QtableWidget?
Hello! Guys. Tell me please. I can not achieve the removal of one line. There is a slot.
a = self.ui.raschetList.rowCount()
for row in range(a):
self.ui.raschetList.removeRow(row)
self.raschetList = QtWidgets.QTableWidget(self.groupBox_4)
self.raschetList.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectRows)
self.raschetList.setSelectionMode(QtWidgets.QAbstractItemView.SingleSelection)
self.raschetList.setObjectName("raschetList")
self.raschetList.setColumnCount(9)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question