Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 3

Qt-interest Archive, December 2007
Selecting Multiple Items from a TreeView


Message 1 in thread

Has anyone been able to implement selection of multiple items in a TreeView
?
If so how ?

Regards,

Ben

--
 [ signature omitted ] 

Message 2 in thread

> From: Ben Shaw [mailto:ben.shaw@xxxxxxxxxx] 
> Sent: Thursday, December 13, 2007 11:56 PM
> 
> Has anyone been able to implement selection of multiple items in a
TreeView?

Have you tried setSelectionMode (see QAbstractItemView).  You should be
able to set it to ContiguousSelection, ExtendedSelection, or
MultiSelection depending on the behaviour you desire.

--
 [ signature omitted ]