I have the same problem and I wrote the following workaround:
QVariant value
= item1
->data
(Qt
::DisplayRole);
// This is trick, because QItemDelegatePrivate::valueToText incorrect convert numbers with floating point
item2->setData(Qt::DisplayRole, value.toString());
QVariant value = item1->data(Qt::DisplayRole);
// This is trick, because QItemDelegatePrivate::valueToText incorrect convert numbers with floating point
if (value.type() == QVariant::Double)
item2->setData(Qt::DisplayRole, value.toString());
To copy to clipboard, switch view to plain text mode
Bookmarks