[PySide] How to select an highlight a row in a QTreeView?

Nathan Smith nathanjsmith at gmail.com
Fri Apr 22 14:16:05 CEST 2016


setCurrentIndex - see
http://www.qtcentre.org/threads/15035-QTreeView-how-to-autoselect-first-row

On Wed, Apr 20, 2016, 3:56 PM Robin Siebler <robinsiebler at dslextreme.com>
wrote:

>
> I am relatively new to Pyside/Qt.
>
> I am using a QTreeView with a QFileSystemModel to display a list of files.
> How can I programmatically select and highlight the 1st one?
>
> Thanks!
> _______________________________________________
> PySide mailing list
> PySide at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/pyside
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20160422/ead6160b/attachment.html>


More information about the PySide mailing list