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

QScrollBar attached to QScrollArea visibility is not updated correctly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.9.1, 6.9.2
    • None
    • Android, Linux/Wayland
    • 2025wk26s2QtforAndroid

    Description

      QScrollBar attached to QScrollArea remains visible, not visually but the QScrollArea.verticalScrollBar() returns isVisible=true, even when the widget inside the scroll area is smaller than the area itself. QScrollArea should not make the scroll bars visible unless the widget hosted inside of it is bigger than the area itself. 

      This seems to happen only when there is a QScrollArea inside another QScrollArea and only the visibilities of the QScrollBars of the inner scroll area are not behaving as they should.

      This can be avoided by calling qwait() of any amount of time after calling the show() method of the QScrollArea, to me it seems like there is some issue with the event processing.

       

      There is a simple project attached for reproducing.

      Attachments

        Issue Links

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

          Activity

            People

              koalajar Konsta Alajärvi
              koalajar Konsta Alajärvi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes