Hi, thank you very much for reply.

I am using a custom delegate which uses QLineEdit as an editor.
I set the rounded data to the editor as below, but it does not seem to work.
The data are still shown as they are.
I may be misunderstanding the role of delegate...
Qt Code:
  1. LineEditDelegate::LineEditDelegate(QWidget *parent)
  2. : QStyledItemDelegate(parent), validator(new QDoubleValidator(this))
  3. {
  4. }
  5.  
  6. QWidget *LineEditDelegate::createEditor(QWidget *parent,
  7. const QStyleOptionViewItem &option,
  8. const QModelIndex &index) const
  9. {
  10. QLineEdit *editor = new QLineEdit(parent);
  11. editor->setValidator(validator);
  12. return editor;
  13. }
  14.  
  15. void LineEditDelegate::setEditorData(QWidget *editor, const QModelIndex &index) const
  16. {
  17. QLineEdit *e = qobject_cast<QLineEdit *>(editor);
  18. e->setText(QString::number(index.data(Qt::EditRole).toDouble(), 'f', 2));
  19. }
  20.  
  21. void LineEditDelegate::setModelData(QWidget *editor, QAbstractItemModel *model,
  22. const QModelIndex &index) const
  23. {
  24. QLineEdit *e = qobject_cast<QLineEdit *>(editor);
  25. model->setData(index, e->text(), Qt::EditRole);
  26. }
To copy to clipboard, switch view to plain text mode 
You could just use a custom delegate that would reduce precision for Qt:isplayRole.
But as far as DisplayRole and EditRole are not actually distinguished,
won't it overwrite the original with the rounded data?