|
|
Hi,
On Thursday 06 January 2005 12:50, Joachim Reichel wrote:
> Now, I've installed the filter on the status bar and it works.
>
> 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.
Regards,
André
--
My opinions may have changed, but not the fact that I am right.
-- Ashleigh Brilliant
|
|