get mouse click position
Asked by
N3rz
Hi,
I'm trying to draw with QPainter a simple chess board ontop of a QT form. First thing I need to know how to get the left mouse button down position (click) so I can calculate from there the position on the array the user clicked... etc
Second thing is that what I draw isn't persistent... so is there a method like... OnDraw or OnPaint?
One more thing to mention is that I made previously gui's in mfc and windows sdk.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu kdevelop Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Markus Thielmann
- Solved:
- Last query:
- Last reply:
To post a message you must log in.