QCheckBox槽函数

void port::on_setTableEditable_clicked(bool checked)
{
	if (checked)
		ui.tableWidget->setEditTriggers(QAbstractItemView::DoubleClicked | QAbstractItemView::SelectedClicked);
	else
		ui.tableWidget->setEditTriggers(QAbstractItemView::NoEditTriggers);
}

你可能感兴趣的:(qt)