February 28, 2012

rushmore rushmore
Lab Rat
27 posts

Floating child window automatically moves with parent

 

I’ve been using Qt4.7.3 for my Mac desktop application. Today I upgraded to 4.8.0 and noticed one thing that has changed. with Qt4.7.3 when my main window moves, its child window (such as a floating tool window or About window) moves with it automatically. However, it is not the case with Qt4.8.0, which is bad for me because I need that for one important occasion.

The best way to test this is try the windowflags example, with Qt4.7.3 the pop up child window moves with parent, with Qt4.8.0, it doesn’t.

Now my question is how do I get back the old behavior in Qt4.7.3? I tried a few hacks in moveEvent. I can sort of make it work, but there is always lagging in the movement. Nothing came close to the smoothness like before. Does any one have any suggestions?

Thank you.

1 reply

February 29, 2012

Volker Volker
Ant Farmer
5331 posts

That’s really strange. In my real world applications I never had this behavior with 4.7.3 (using a manual build against Carbon, maybe it is a Cocoa only problem). I would regard the 4.7.3 behavior a bug and 4.8.0 the correct version.

 
  ‹‹ How to get all the tabs on left or right of the selected tabs using CSS?      [Solved] Can I include extended ascii codes in my application? ››

You must log in to post a reply. Not a member yet? Register here!