2013-10-09 92 views

回答

2

您需要撥打QAbstractItemBiew.setSelectionMode()QTableWidget並附上合適的SelectionBehavior,您的情況爲QAbstractItemView.SingleSelection

所以沿着線的東西:

myTable = QtGui.QTableWidget() 
myTable.setSelectionMode(QtGui.QAbstractItemView.SingleSelection) 
相關問題