PDA

View Full Version : Adding element to QTableWidget.



sudhansu
6th March 2010, 08:16
Hi All
I've a table widget. I need to add items to it.
theere is two option. I can give a range to add or a single digit.
There is a edit box for range and another for single. If i press ok button it should add the valus from this edit box.

Table view should be like

Slno Rangestart RangeEnd Single

1 10 15
2 5 30
3 44
4 98

i've added the rowcount 10 like tableWidget->setRowCount(10);
How will i add the item? how will i get the next row??

Thanx