Thanks....
and a little follow up question...
"ui->tableWidget->takeItem" copy the item in the Qtablewidget to a new pointer right???
in other words...
QTableWidgetItem* pItem = ui->tableWidget->takeItem(p->row(), p->column());
To copy to clipboard, switch view to plain text mode
is this same as
pItem->setText( ui->tableWidget->takeItem(p->row(), p->column())->text() );
pItem->setCheckState( ui->tableWidget->takeItem(p->row(), p->column())->text()->checkState() );
QTableWidgetItem* pItem = new QTableWidgetItem*;
pItem->setText( ui->tableWidget->takeItem(p->row(), p->column())->text() );
pItem->setCheckState( ui->tableWidget->takeItem(p->row(), p->column())->text()->checkState() );
To copy to clipboard, switch view to plain text mode
does this two have a big difference?? or is it like the same thing....
Bookmarks