Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.7.2
-
None
-
-
d4ccceabf (dev)
Description
Unzip, compile and run the attached project AddQmlWidget.zip.
When the main window appears, move it to a distinct position on the Desktop (e.g. upper left corner).
Press the "Click me" button. The main window jumps / changes its position, usually somewhere in the middle of the desktop.
Expectation is: The main window position and size does not change.
I debugged a bit into the Qt sources. I think this happens because the main window is re-created (without preserving the coordinates).
Workaround is to query the coordinates in my own code and set it again after QQuickWidget* qmlWid=new QQuickWidget(m_widget);