[Interest] QApplication.activeWindow().pos() not returning correct value after sacling on OSX

Scott Aron Bloom scott at towel42.com
Thu Feb 18 07:35:54 CET 2016


Ahh yes.. Good point..

99% of my mapTo usage is with event handler and menus... but Andre is 100% correct

From: Interest [mailto:interest-bounces+scott.bloom=onshorecs.com at qt-project.org] On Behalf Of André Somers
Sent: Wednesday, February 17, 2016 22:29
To: interest at qt-project.org
Subject: Re: [Interest] QApplication.activeWindow().pos() not returning correct value after sacling on OSX


Op 18/02/2016 om 05:33 schreef Scott Aron Bloom:

If you know the parent, you can use parent->mapToGlobal( QRect ) to find the global rectangle.


You don't need to know the parent if you call mapToGlobal on the widget itself, using a rectangle with the right size at origin (0,0).

André
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160218/6d9d6de3/attachment.html>


More information about the Interest mailing list