Results 1 to 5 of 5

Thread: How to set the height of row in QListView

  1. #1
    Join Date
    Aug 2008
    Posts
    28
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default How to set the height of row in QListView

    How to set the height of row in QListView?

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: How to set the height of row in QListView

    Quote Originally Posted by sawerset View Post
    How to set the height of row in QListView?
    This is managed by the sizeHint() of your delegate.

  3. #3
    Join Date
    Aug 2008
    Posts
    28
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: How to set the height of row in QListView


  4. #4
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: How to set the height of row in QListView

    Do you see the debug message? How do you set the model and the delegate?

  5. #5
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,042
    Thanks
    8
    Thanked 133 Times in 128 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How to set the height of row in QListView

    did you forgot to add a const ?
    QSize QPushButtonDelegate::sizeHint (const QStyleOptionViewItem & option, const QModelIndex & index ) const

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. QListView scroll height (solved)
    By efegea in forum Qt Programming
    Replies: 0
    Last Post: 26th April 2009, 14:06
  4. [solved]QListView dynamic item height
    By kernel_panic in forum Qt Programming
    Replies: 8
    Last Post: 17th March 2009, 14:05
  5. QListView word wrap
    By serega in forum Qt Programming
    Replies: 17
    Last Post: 30th August 2007, 03:13

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.