Quantcast
Channel: Jobs
Viewing all articles
Browse latest Browse all 18427

Adding text to cells of a QTableWidget by code?

$
0
0
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)?

Viewing all articles
Browse latest Browse all 18427

Trending Articles