[Development] Behavior of mapToGlobal function when application is not the one active.

Bo Thorsen bo at vikingsoft.eu
Tue Aug 2 15:24:52 CEST 2016


Den 02-08-2016 kl. 14:22 skrev NIkolai Marchenko:
> 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?

Please send this to the interest mailing list instead. This is not the 
appropriate list.

And when you resent it, you have to send some code as well because the 
but will be in your code and we can't help with that unless we see it.

Bo Thorsen,
Director, Viking Software.

-- 
Viking Software
Qt and C++ developers for hire
http://www.vikingsoft.eu



More information about the Development mailing list