Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道如何以及是否可以一次只选择一个单元格或项目,而不是允许多项选择。先感谢您。
tableWidget->setSelectionBehavior( QAbstractItemView::SelectItems ); tableWidget->setSelectionMode( QAbstractItemView::SingleSelection );