Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken window origins #88

Open
dmik opened this issue May 31, 2019 · 0 comments
Open

Broken window origins #88

dmik opened this issue May 31, 2019 · 0 comments
Labels
QtGui Tickets belonging to QtGui module

Comments

@dmik
Copy link
Contributor

dmik commented May 31, 2019

If Qt is asked to create a native window for each child widget of a top-level window, the window origin gets broken - its contents appears shifted to the bottom left corner by a few pixels. More over, if you resize such a window, it gets even worse — the window contents gets completely corrupted. It also breaks positioning of pull down and popup menus.

The manual/widgetgrab test is a good demonstration of this. Start it and then press the "Force native widgets" button.

Perhaps, it has something to do with the default aligning of child windows performed by PM and also with the way we calculate the native frame margins for top level windows. Needs checking.

Note that the same reason may be behind the slight shift of dockable toolbars when they are dragged out of the toolbar area to become separate windows. Any example with movable toolbars shows this (e.g. textedit).

@dmik dmik added the QtGui Tickets belonging to QtGui module label May 31, 2019
@dmik dmik added this to To do in [Qt 5] 1.6. Port Qt GUI (excluding OpenGL) via automation May 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
QtGui Tickets belonging to QtGui module
Development

No branches or pull requests

1 participant