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

QAbstractScrollArea doesn't work in QGraphicsScene with QWidget inside items

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 5.9.6, 5.12.2
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Linux, Android, Windows
    • Platform/s:
      All

      Description

      For Android I need some QListWidget working inside QGraphicsScene. This is mandatory needed for easy scale on different Android screens. QListWidget must have QGroupBox (or any other attached QWidget) attached to each list item. I found this structure does not work. No scrolling if list is longer than visible list part. Vertical scrollbar knob moves between upper and lower positions but list doesn't scroll. Here I attached sample project demonstrating this bug. Without QWidget attached to list items this works fine. To get this just replace 0 to 1 in #if statement inside testlist.cpp file. With just text inside item the list scrolls. Probably bug is in QAbstractScrollArea or in QScrollBar classes. It appears also if QTableWidget used instead of QListWidget.

      PS: The list with items scrolls. But QWidgets attached to items stay on place. Probably they get wrong parent.

        Attachments

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

          Activity

            People

            Assignee:
            qt.team.quick.subscriptions Qt Quick and Widgets Team
            Reporter:
            gourmand64 Gourmet
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes