Results 1 to 9 of 9

Thread: [solved]QListView dynamic item height

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2007
    Posts
    177
    Thanks
    8
    Thanked 10 Times in 9 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default [solved]QListView dynamic item height

    Hi all,
    im trying to implement a listview with model and delegate which items should resize dynamicaly.
    for example if i press an item and its selected the height should be 2*normal height.
    i tried to reimplement sizeHint of QItemDelegate, but the sizeHint isnt catched dynamically. it seems its only used on initialising the view.
    I found no methods in QAbstractItemModel or QItemDelegate or QListView that could handle this.
    Any suggestions?
    Last edited by kernel_panic; 18th February 2009 at 22:11.

Similar Threads

  1. How to Modify QListView item height?
    By blackfox in forum Qt Programming
    Replies: 7
    Last Post: 16th May 2012, 11:38
  2. QListView + row height
    By NoRulez in forum Qt Programming
    Replies: 4
    Last Post: 12th May 2012, 08:53
  3. find item in QListView
    By AD in forum Qt Programming
    Replies: 3
    Last Post: 14th November 2008, 13:50
  4. QListView item alignment
    By innerhippy in forum Qt Programming
    Replies: 2
    Last Post: 11th November 2008, 09:32
  5. how to move item up and down in QListView
    By zhanglr in forum Qt Programming
    Replies: 3
    Last Post: 1st August 2008, 14:39

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
  •  
Qt is a trademark of The Qt Company.