是否可以在
QTableWidget
tableWidget->setSelectionBehavior( QAbstractItemView::SelectItems ); tableWidget->setSelectionMode( QAbstractItemView::SingleSelection );