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

Frank Rueter | OHUfx frank at ohufx.com
Wed Feb 17 22:14:08 CET 2016


anybody?
is this a bug?

On 16/02/16 12:21 pm, Frank Rueter | OHUfx wrote:
> Hi,
>
> I am trying to figure out my host application's window geometry 
> reliably and am struggling a bit.
>
> I use QApplication.activeWindow().geometry() to drive my custom 
> widget's geometry (I need to sit exactly on top of the host application).
> All works fine and my widget sits exactly on top of the host 
> application window, until the host app is scaled by dragging one of 
> it's sides out or in. After that 
> QApplication.activeWindow().geometry() still returns the same exact 
> position, though the size is correct, resulting in an offset for my 
> widget.
> Turns out scaling windows on OSX by dragging their edges doesn't seem 
> to update QApplication.activeWindow().pos()
>
> As soon as I grab the title bar and move the host app a tiny bit, 
> QApplication.activeWindow().pos() seems to be updated correctly.
>
> Is there a fix/workaround for this?
>
> Cheers,
> frank
>
> -- 
> ohufxLogo 50x50 <http://www.ohufx.com> 	*vfx compositing 
> <http://ohufx.com/index.php/vfx-compositing> | *workflow customisation 
> and consulting <http://ohufx.com/index.php/vfx-customising>* *
>
>
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

-- 
ohufxLogo 50x50 <http://www.ohufx.com> 	*vfx compositing 
<http://ohufx.com/index.php/vfx-compositing> | *workflow customisation 
and consulting <http://ohufx.com/index.php/vfx-customising>* *

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160218/70915354/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 2666 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160218/70915354/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ohufxLogo_50x50.png
Type: image/png
Size: 2666 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160218/70915354/attachment-0001.png>


More information about the Interest mailing list