Results 1 to 1 of 1

Thread: QListView scroll height (solved)

  1. #1
    Join Date
    Oct 2008
    Posts
    4
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default QListView scroll height (solved)

    I have a QListView with a custom QAbstractListModel and a custom QItemDelegate.

    The QListView is setup as Icon Mode. But I having a problem: the scroll area height is double it should be. I can scroll double more than the total of icons height.

    I'm using Qt 4.5.0. It didn't happen on previous versions of Qt.

    I think the QListView is ignoring the number of columns it creates internally as an icon view (not the model, as it is a list model and doesn't have columns) and it's showing the total of rows the model is reporting, instead of showing the number of rows divided by the number of columns (or something like that)

    Perhaps I'm missing something?

    EDIT: what's that about posting something and then, after having it posted, finding the solution? I had been using a QSortFilterProxyModel for the model, disabling it caused my QListView to behave how it should.
    Attached Images Attached Images
    Last edited by efegea; 26th April 2009 at 15:29.

Similar Threads

  1. How to Modify QListView item height?
    By blackfox in forum Qt Programming
    Replies: 7
    Last Post: 16th May 2012, 12:38
  2. QListView + row height
    By NoRulez in forum Qt Programming
    Replies: 4
    Last Post: 12th May 2012, 09:53
  3. [solved]QListView dynamic item height
    By kernel_panic in forum Qt Programming
    Replies: 8
    Last Post: 17th March 2009, 15:05
  4. QLayout: different SizeConstraints for width and height?
    By PhilippB in forum Qt Programming
    Replies: 0
    Last Post: 23rd February 2009, 17:33
  5. QListView word wrap
    By serega in forum Qt Programming
    Replies: 17
    Last Post: 30th August 2007, 04:13

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.