I'm a bit lost here. I've created a new class subclassing QListWidget, and I have a qDebug() as the first statement in my event() method. It's printing out the event type for each call. I'm getting the following list (with the text to the right of the event # added by me):
1 - Regular timer event
8 - Gaining keyboard focus
9 - Losing keyboard focus
10 - Mouse entering boundaries
11 - Mouse leaving boundaries
13 - Widget position changed
14 - Widget size changed
17 - Widget shown on screen
24 - Window was activated
25 - Window was deactivated
26 - A child widget has been shown
39 - Widget palette has changed
67 - ??
68 - Child was added
69 - Child was polished
70 - Child was inserted
71 - Child was removed
74 - Request for polish
75 - Widget was polished
97 - Font was changed
110 - "What's This?" help was clicked
178 - The margins of the content rect changed
194 - Touch begin: beginning of a sequence of touch-screen or track pad events
198 - Gesture: a gesture was triggered
203 - Widget's WinId was changed
I'm not seeing any mouse press or release events. I'm trying to trap events so that mouse clicks are no longer processed by QListWidget, but by me. And yet, when I click the mouse in my list widget, the items in the list are still being highlighted and unhighlighted. How is the base class getting ahold of these events if I'm overriding event()?
Any help here? Or should this question be in another forum? It seems to me this is a Qt question, because somehow the super class is getting events I'm not seeing.
Bookmarks