|
|
But I can't see how to apply this to the QListView. Its children are
subclasses of QListViewItem and do not inherit QObject, i.e. you can't
install event filters on them.
On the other hand, the event filter installed on QListView does not see
most of the mouse events. It sees mouse move events when the mouse enters
or leaves the widget, but no button events. What happens with the mouse
button events while the mouse is inside the QListView widget?
Since QListView inherits QScrollView, it would be a good idea to read up on
the documentation of that widget. It will tell you about the structure of
QScrollView. In your case, you should recognize that you'll need to install
an eventfilter on QScrollView::viewport() to get mouse events in the viewport
of your QListView.
Stupid me. Thank you very much.
Regards,
Joachim
--
List archive and information: http://lists.trolltech.com/qt-interest/
|
|