[PyQt] Scripted selection of items in QTableView

Florian Bruhin me at the-compiler.org
Tue Aug 2 22:16:09 BST 2016


* Saeed Bakhshmand <saeedbakhshmand at gmail.com> [2016-08-02 16:24:25 -0400]:
> Right, how can I create a QItemSelection with a desired list of indices
> (e.g. [[2,4],[3,5],[1,4]]) instead of rectangular area?

By using the overload taking a QModelIndex which I mentioned in my
mail ;)

Florian

-- 
http://www.the-compiler.org | me at the-compiler.org (Mail/XMPP)
   GPG: 916E B0C8 FD55 A072 | http://the-compiler.org/pubkey.asc
         I love long mails! | http://email.is-not-s.ms/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20160802/4677e122/attachment-0001.sig>


More information about the PyQt mailing list