QCursor::pos() and QWidget::mapFromGlobal()
QCursor::pos() and QWidget::mapFromGlobal()
Dark_Tower (14th April 2006)
Thanks a lot jacek. I was afraid of using this function ("mapToGlobal") because I don't know if it works with a widget inserted in a scroll area: I don't know how it could manage it internally, I suppose that it has to consult the values of the scroll bars or what's the visible area to make the translation from screen coords to widget coords... What do you think?
I think that you should first try it and then ask.Originally Posted by Dark_Tower
Bookmarks