[SOLVED] How to disable expanding and collapsing by mouse double-click in QTreeView ?
I've got some classes QTreeView and QAbstractItemModel. I process activated(const QModelIndex &) signal of my view. When I double-click on item it emits activated and also collapse/expand current item. I need to block expanding/collapsing or block emitting signal when double click.
It seems like eventFilter can solve my problem.
check "expandsOnDoubleClick : bool property of QTreeView":http://qt-project.org/doc/qt-4.8/qtreeview.html#expandsOnDoubleClick-prop