Quite weird. mouseDoubleClickEvent doesn't work
Hi all. I'm using Qt4 Jambi 4.5.x and new to it . I want to override mouseDoubleClickEvent in QTextEdit widget but failed. I cannot see the log. I had searched many samples and I think my code should be OK. I don't know why my code cannot work.
Would someone kindly enough to have a look at it? Thanks in advance.
Code:
package org.langpartner.nword.view;
public TextEditTest() {
}
@Override
protected void mouseDoubleClickEvent
(QMouseEvent arg__1
) { System.out.println("Entered contextMenuEvent...");
}
static public void main(String args[]) {
TextEditTest mw = new TextEditTest();
mw.show();
}
}
Re: Quite weird. mouseDoubleClickEvent doesn't work
The mouse click event is catched by the text edit and probably not forwarded to your main window. So in that design you have to use an event filter. But that is only a guess since I don't use Jambi.