You are not logged in.

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

pavlacki

Beginner

  • "pavlacki" started this thread

Posts: 26

Location: Belgium - Bruxelles

Occupation: developer

  • Send private message

1

Sunday, October 9th 2005, 2:01am

get the mouse position at anytime

Hi,

in QT 4, is it possible to retrieve the mouse position at anytime.

for example in the keyPressEvent I want to have the mouse cursor position.

One solution is to saving the cursor position
but I can't do it because I don't interact with the mouse.


Thanks

This post has been edited 1 times, last edit by "pavlacki" (Oct 9th 2005, 2:05am)


Krasu

Intermediate

  • "Krasu" is male

Posts: 234

Location: Republic of Belarus

  • Send private message

2

Sunday, October 9th 2005, 2:04am

RE: get the mouse position at anytime

QCursor::pos() ?

pavlacki

Beginner

  • "pavlacki" started this thread

Posts: 26

Location: Belgium - Bruxelles

Occupation: developer

  • Send private message

3

Sunday, October 9th 2005, 2:07am

thanks