How to prevent Q3ListView::contentsMouseDoubleClickEvent(QMouseEvent * e) from executing
-
I have a Q3ListView that opens an edit window on a double click of the mouse. The problem is, the double click also causes Q3ListView::contentsMouseDoubleClickEvent(QMouseEvent * e) to expand the list view item if it is collapsed and collapse it if it is expanded. I don't want this behavior. I just want to process the double click to open the edit window and not have Q3ListView call setOpen(!open) at all. I've tried everything I can think of but my reimplementation of contentsMouseDoubleClickEvent() doesn't ever get called. Any suggestions?
-
Hi and welcome to devnet,
You might want to try an event filter. However, you should really consider updating your code. Q3ListView was a helper class to port Qt3 code to Qt4.