I create an object with tableWidget have. I take information from the database and the inside of the display. Also able to create the new column. How to access row columns was?
____________________________
debian forums
Printable View
I create an object with tableWidget have. I take information from the database and the inside of the display. Also able to create the new column. How to access row columns was?
____________________________
debian forums
Are you able to show data in your tablewidget ? If yes I guess you are using QTableWidgetItem.
You can access that item through QTableWidget::item
How to access the rows and columns have data in it do instead? For example, the first row and first column and the second and third
to acess data
Code:
tableWidget.item(line, row)
to set data
Code:
tableWidget.item(line, row)->setText("some text");