[Interest] Struggling with moveEvent()

Giuseppe D'Angelo giuseppe.dangelo at kdab.com
Mon Oct 1 21:15:57 CEST 2018

Il 01/10/2018 20:11, Murphy, Sean ha scritto:
> So I'm not sure what I need to trigger off from to detect when I need to reposition the menu. I feel like I'm missing something really obvious, but not seeing it on a Monday apparently.

I don't think you're missing anything -- if a widget doesn't move, but 
its parent does, only the parent gets a move event, not the widget.

As a result, for your use case, I believe you need to track move events 
on the whole parent/child chain starting at the window up to your 
widget. I guess you can install event filters for this.

Giuseppe D'Angelo | giuseppe.dangelo at kdab.com | Senior Software Engineer
KDAB (France) S.A.S., a KDAB Group company
Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com
KDAB - The Qt, C++ and OpenGL Experts

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4007 bytes
Desc: Firma crittografica S/MIME
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20181001/0df1d438/attachment.bin>

More information about the Interest mailing list