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

QScrollBar attached to QScrollArea visibility is not updated correctly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.9.1, 6.9.2
    • None
    • Android, Linux/Wayland
    • 2025wk26s2QtforAndroid, 2025wk28s2QtforAndroid, 2025wk30s2QtforAndroid, 2025wk32s2QtforAndroid, 2025wk38s2QtforAndroid

      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.

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

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

              Created:
              Updated:

                There are no open Gerrit changes