[Qt-interest] How to get mouse cursor position from QEvent

Eric Clark eclark at ara.com
Mon Feb 22 17:28:34 CET 2010


Try the static function QCursor::pos()

Eric

From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Steven Chang
Sent: Monday, February 22, 2010 10:23 AM
To: qt-interest at trolltech.com
Subject: [Qt-interest] How to get mouse cursor position from QEvent

Dear Sir,

I re-implement Qt QWidget's protected function "void enterEvent(QEvent *event);".
How can I get the enter point or mouse cursor position from the parameter(*event) of enterEvent function?
Thanks a lot!

Best Regards,
Steven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100222/18b3f52c/attachment.html 


More information about the Qt-interest-old mailing list