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

Mac: QListView.setWrapping should not consider scrollbar width

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.9.7, 5.12.0, 5.15.2
    • None
    • macOS

      I would like to use all the available space inside a QListView on the Mac. I set up a QListView like this:

       

      QListView *l = new QListView();
      l->setFlow(QListView::LeftToRight);
      l->setWrapping(true);
      l->setResizeMode(QListView::Adjust);
      l->setMovement(QListView::Static);
      l->setGridSize(QSize(myComputedWidth, myComputedHeight));
      l->setItemDelegate(myDelegate);

       

      Wrapping is broken because it takes into account the scrollbar width while overlay scrollbars take no space. The end result is that I get blank space on the right, which is ugly.

        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
            flaviotordini Flavio Tordini
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes