Hi,
I added a QTableWidget in my form class. I did not modify anything in form, just added the widget with all default properties.
Then in a function I called setColumnCount() & setRowCount() so that I got the required no of cells.
I can add text to the cells at run time by double clicking.
But I cannot find a function to add text to a particular cell in a QTableWidget by code.
How do I add the contents of a QString to a cell by code something like this: table->setCellText(QString text, int row, int column)?
↧