[Qt-interest] QTreeView activated signal on single click

Thomas t at v.com
Thu Oct 15 14:03:42 CEST 2009


All,

I have a QTreeView and would like to receive the activated event on a single 
left mouse click. I traced the code back to this line in 
qabstractitemview.cpp (#1664):

if (style()->styleHint(QStyle::SH_ItemView_ActivateItemOnSingleClick, 0, 
this))
    emit activated(index);

This condition is false. I use Windows and also tried various -style options 
but no luck. Also I'm pretty sure this was working earlier.
How can I change this behaviour and what could change it?

Thanks,
Thomas 





More information about the Qt-interest-old mailing list