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

HorizontalScrollBar cannot be used when Qliveview switches from IconMode to ListMode.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.15.2
    • Widgets: Itemviews
    • None
    • win10
    • Windows

    Description

      My project requires QListView to switch between ListMode and IconMode using setViewMode. When it is in ListMode, I have override sizeHint, which can show horizontalScrollBar. But when I switch back from IconMode to ListMode, no matter how I do the horizontalScrollBar, it won't be show. I used setHorizontalScrollBarPolicy (Qt:: ScrollBarAlwaysOn) to make the horizontalScrollBar appear, it still looks unusable.How to make HorizontalScrollBar enabled.
      1.horizontalScrollBar show

      2.set IconMode

      3.and switch ListMode the horizontalScrollBar looks unusable.

       

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            sunholic 孙 鹏程
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes