38 QStyledItemDelegate(parent)
94 if (
index.column() == 4)
97 QTextEdit* editor =
new QTextEdit(parent);
100 editor->setReadOnly(
true);
109 return QStyledItemDelegate::createEditor(parent,
option,
index);
115 QTextEdit* textEdit = qobject_cast<QTextEdit*>(editor);
125 r.setSize(QSize(700, 300));
126 editor->setGeometry(r);
131 emit closeEditor(qobject_cast<QWidget*>(sender()));