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

Horizontal scroll bar is not shown in QListView with horizontalScrollBarPolicy and verticalScrollBarPolicy == Qt::ScrollBarAsNeeded

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.6.0 RC
    • 5.4.0, 5.4.1
    • Widgets: Itemviews
    • None
    • Windows, OS X
    • I11d6ccf7c0b51644a5ce2d5c3fc59e2e4812755d

    Description

      Precondition:
      QListView having these properties:
      horizontalScrollBarPolicy = Qt::ScrollBarAsNeeded
      verticalScrollBarPolicy = Qt::ScrollBarAsNeeded
      Actual Result:
      QListView doesn't show horizontal scroll bar when the content exceeds the right edge and doesn't exceeds the bottom edge.

      Expected Result:
      QListView should show horizontal scroll bar and not show vertical scroll bar.

      Special notes:

      1. The bug appeared when fixing this bug: QTBUG-39902

      2. The bug is located in function:
      void QCommonListViewBase::updateHorizontalScrollBar(const QSize &step)

      3. This bug is reproduced only when content width is bigger than viewport width and less than viewPort width + vertical scroll bar width

      Attachments

        Issue Links

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

          Activity

            People

              cschleifenbaum Christoph Schleifenbaum
              govage Vasil Hancharenka
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes