QTableWidget设置整行选中

ui->tableSpot->setSelectionBehavior ( QAbstractItemView::SelectRows);
ui->tableSpot->setSelectionMode(QAbstractItemView::SingleSelection);

猜你喜欢

转载自blog.51cto.com/10534523/2139889
今日推荐