摘要: 問題: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;
閱讀全文