PDA

View Full Version : Display value in tableWidget row/column



sosanjay
2nd October 2009, 15:23
Hi All,

I am using Qt 4.5.2

I want to Insert the value in the Table Row & Table Column.
I am using this command ui->tableWidget->setCellWidget(0,1,label);
but in this i have to put value in label .

Can anyone tell me that I can use directly insert the value in the table widget row or column without using label or other widgets.

faldzip
2nd October 2009, 17:36
you have to use QTableWidgetItems.
Read this carefully: QTableWidget

sosanjay
3rd October 2009, 06:48
Thanks for the Reply.

If Possible Can you send me the link of some example code or send me the snippets of the code.

I have searched lot but i could not found. So please if possible

jpn
3rd October 2009, 07:30
Please read through the detailed description of QTableWidget. There ARE example snippets.

faldzip
3rd October 2009, 08:04
If Possible Can you send me the link of some example code or send me the snippets of the code.

I gave you links in last post. All you need is to click on them.