[PyQt] Selecting several table items

Mads Ipsen mpi at comxnet.dk
Thu Aug 20 09:40:26 BST 2009


Hi,

Ho do I programmatically select several items in a QTableView? I can 
select one element by calling the method setCurrentIndex(), but that 
only selects a single item. I need to do this in order to write a proper 
unit test.

Best regards,

Mads

-- 
+------------------------------------------------------------+
| Mads Ipsen, Ph.D, Scientific software developer            |
+------------------------------+-----------------------------+
| QuantumWise A/S              | phone:         +45-29716388 |
| Nørresøgade 27A              | www:    www.quantumwise.com |
| DK-1370 Copenhagen, Denmark  | email:  mpi at quantumwise.com |
+------------------------------+-----------------------------+




More information about the PyQt mailing list