pshah.mumbai
16th August 2008, 14:28
//Getting the two QTableWidgetItem below
QTableWidgetItem *item1 = this->item(r, 1);
QTableWidgetItem *item2 = this->item(r, 2);
//Copying the value of ietm1 to item2
item2->setText(item1->text());
If the value of item 1 is "100.10" then it is copied as "100.1", how to make it copy as it is - "100.10"
Also is it possible to filter the input to the qtablewidget. I want only decimal input to be accpeted.
Thanks !
QTableWidgetItem *item1 = this->item(r, 1);
QTableWidgetItem *item2 = this->item(r, 2);
//Copying the value of ietm1 to item2
item2->setText(item1->text());
If the value of item 1 is "100.10" then it is copied as "100.1", how to make it copy as it is - "100.10"
Also is it possible to filter the input to the qtablewidget. I want only decimal input to be accpeted.
Thanks !