I want to get mouse's position in a widget not through QMouseEvent,How can I do this?
thanks!
I want to get mouse's position in a widget not through QMouseEvent,How can I do this?
thanks!
then you will have to work directly with X.
(Why can't you use QMouseEvent?)
Qt Code:
To copy to clipboard, switch view to plain text mode
J-P Nurmi
sure,I am building a GUI program, but mouseMove event just can be captured when leftOriginally Posted by high_flyer
or right button is pressed, which is different with windows ,and grap mouse input is
dangerous,so I have to get mouse position in timerEvent().
Thanks a lot! I will test it.Originally Posted by jpn
Bookmarks