[Development] Behavior of mapToGlobal function when application is not the one active.
NIkolai Marchenko
enmarantispam at gmail.com
Tue Aug 2 14:22:45 CEST 2016
A little bit of context: I am trying to organize getting interface
positions/sizes out of an application via RPC interface. To do this I have
inserted grpc server code into a GUI app and grpc client into another,
testing application.
Essentially, when the client app sends a signal, the main app should do
button->mapToGlobal(QPoint(0,0,)) and return this via RPC.
What happens in fact, is that unless I specifically press the "get
coordinates" button on the main app, the coordinates I get are completely
wrong.
Scenario 1: mapToGlobal at the button press of the same app: correct
coordinates
Scenario 2: mapToGlobal at rpc signal from client app: completely wrong
coordinates AND size, coordinates for buttons in the same layour are the
same.
What can this be?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20160802/31151e55/attachment.html>
More information about the Development
mailing list