Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-92979

QWidget rendering offset issue when using Q3DSurface

    XMLWordPrintable

Details

    • Windows

    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

       

      Attachments

        1. image-2021-04-21-08-45-09-583.png
          image-2021-04-21-08-45-09-583.png
          82 kB
        2. Qt5_12_6.gif
          Qt5_12_6.gif
          483 kB
        3. Qt5_12_7.gif
          Qt5_12_7.gif
          629 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vestbo Tor Arne Vestbø
            jonaslarsson Jonas Larsson
            Votes:
            9 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes