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

Putting QTableWidget in a QGraphicsScene breaks positioning of all widgets in cells

    XMLWordPrintable

Details

    • Windows

    Description

      Reproducer attached. A QTableWidget with some QWidget's is put into a QGraphicsScene.

      The problem is that scrolling the QTableWidget does not reposition its QWidget's. If you scroll the QTableWidget all the way to the right, you can see that QWidget's and cells are completely dislocated:

      And that is because cells are scrolled but QWidget's stay at where they were.

      The use case is that QGraphicsScene is practically the only way to transform a QWidget (a QTableWidget in this case) with reasonable effort. Overriding paintEvent also works but that can be too complicated. So what's being done in reproducer is not very uncommon.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            bibr Andreas Aardal Hanssen
            luqiaochen Luqiao Chen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes