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

Detached ScrollBar sometimes does not update position if size changes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.2.2
    • Quick: Controls 2
    • None
    • Windows 10 Build (19043.1466)
    • Windows

      The position of a detached scrollbar is not set to 0 if the scrollbar is scrolled to its limit and then the size changes to >= 1.0 .

      The attached example is from your documentation: https://doc-snapshots.qt.io/qt6-dev/qml-qtquick-controls2-scrollbar.html#non-attached-scroll-bars

      I made the scrollbars always visible and added two buttons to change the size of the text.

      Reproduce:

      1. Start app, scrollbars work as expected
      2. Scroll to the bottom right
      3. Push "Small font"
      4. The scrollbars size is wrong and the text item is moved outside the top left of the frame
      5. On dragging the scrollbar fixes itself

      Not sure if in your oppinion this is a bug, I think it should be.

       

        1. ScrollBarExample.zip
          2 kB
          Marscho
        2. QTBUG-100237.gif
          164 kB
          Marscho
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            Marscho Marscho
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes