QTableWidget *table = new QTableWidget;
table ->setSelectionMode(QAbstractItemView::SingleSelection);//单击选中整行
table ->setSelectionBehavior(QAbstractItemView::SelectRows);
QTableWidget *table = new QTableWidget;
table ->setSelectionMode(QAbstractItemView::SingleSelection);//单击选中整行
table ->setSelectionBehavior(QAbstractItemView::SelectRows);