Hello,
I am wondering what's the difference between
myTableWidgetItem->setData(Qt::DisplayRole, "hello");
myTableWidgetItem->setData(Qt::DisplayRole, "hello");
To copy to clipboard, switch view to plain text mode
and
myTableWidgetItem->setText("hello");
myTableWidgetItem->setText("hello");
To copy to clipboard, switch view to plain text mode
when adding new items to a QTableWidget... I tried both approaches and cannot tell the difference. Which one should I choose?
(edit: also, it looks like setTextAlignment() works on both)
Thank you
Bookmarks