this works great but we have a problem with
{
QWidget *w
= static_cast<MyDoubleSpinBox2
*>
(editor
);
MyDoubleSpinBox2 *spinBox = static_cast<MyDoubleSpinBox2*>(w);
spinBox->setValue(turkish.toDouble(index.model()->data(index, Qt::EditRole).toString().remove(totalParaBirimi, Qt::CaseInsensitive)));
spinBox->selectAll();
}
void ProformaDelegate::setEditorData(QWidget *editor, const QModelIndex &index) const
{
QWidget *w = static_cast<MyDoubleSpinBox2*>(editor);
MyDoubleSpinBox2 *spinBox = static_cast<MyDoubleSpinBox2*>(w);
spinBox->setValue(turkish.toDouble(index.model()->data(index, Qt::EditRole).toString().remove(totalParaBirimi, Qt::CaseInsensitive)));
spinBox->selectAll();
}
To copy to clipboard, switch view to plain text mode
Can we do it like this?
Bookmarks