PDA

View Full Version : QTreeView behavior



killerwookie99
11th February 2009, 18:43
Is there a way to set the selection model to only select a single item, but only allow that selection to occur in the first column only? I didn't see anything like this in regards to the ::data model and grabbing a Qt::Role :crying:

caduel
11th February 2009, 20:29
see QAbstractItemView::selectionBehavior(), QAbstractItemView::selectionMode()