摘要: 问题:QTableWidget,最后一列为删除按钮,点击时删除当前行。
QPushButton *editor = new QPushButton(tr("删除"), parent);
connect(editor, SIGNAL(clicked()), signalMapper, SLOT(map()));
signalMapper->setMapping(editor, index.data(Qt::UserRole + 2).toString());
return editor;
阅读全文