PDA

View Full Version : QlistView mouse press



dima
10th October 2010, 10:27
Hi,
I use QListView and QDirModel to display file system in thumbnails mode.
1.I want to clear selection if mouse pressed inside QListView but no item selected?

2.I tried to capture mouse press event in QListView with installEventFilter, but I got only hover event, despite I enable mouse tracking ?

Lykurg
10th October 2010, 15:51
1.I want to clear selection if mouse pressed inside QListView but no item selected?Reimp mouse press event, check if an item is undet the mouse (QListView::indexAt()) if not, clear the selection.