Replace Qcursor:os() with your widget position and maptoGlobal(thatPosition) as next parameter.
in your case :
Qpoint point =yourWidget->geometry().center();
Qpoint glbPos = yourWidget->maptoGlobal(point);
sorry I could not type well as I'm replying from my phone.





os() with your widget position and maptoGlobal(thatPosition) as next parameter.
Reply With Quote

Bookmarks