Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.12.7, 5.12.8, 5.12.9, 5.12.10, 5.15.2, 6.1.0 Beta3
Description
I'm seeing rendering issues when using Advanced Docking System together with Qt Data Visualization, which is based on Q3DSurface, which has a QWindow in the bottom
I'm creating a widget to place inside an ADS tab with QWidget::createWindowContainer(&surface)
As you can see, the second tab has been offseted and is not placed in the correct location, however mouse interactions are still working at the locations being drawn. I've checked all the geometry of the widget hierarchy and the coordinates are as they should be.
If I remove the Qt Data Visualization widget, everything works as it should. It only happens when there is a Q3DSurface inside the tab.
Next was to test different versions of Qt, here are my results
Qt Version | Result |
---|---|
5.8.0 | No problem |
5.9.9 | No problem |
5.11.3 | No problem |
5.12.0 | No problem |
5.12.5 | No problem |
5.12.6 | No problem |
5.12.7 | Rendering offset issue |
5.12.8 | Rendering offset issue |
5.12.9 | Rendering offset issue |
5.12.10 | Rendering offset issue |
5.15.2 | Rendering offset issue |
6.1.0 beta 3 | Rendering offset issue |
According to my tests the problem first appears in Qt 5.12.7, so I traced the problem to the following commit
https://github.com/qt/qtbase/commit/009abcd7b66738bece6cf354776dfb2ef401636b
When removing this code from Qt 5.12.7 everything works as it should again
I don't know why this code causes problems, only that it does. The same code also exists in Qt 6.1.0 beta 3.
I'm also not entirely sure if the problem is with Qt, or with Advanced Docking System.
The bug has also been reported here
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System/issues/294