Results 1 to 9 of 9

Thread: QTableView row heights

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2006
    Location
    Mountain View, California
    Posts
    489
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    3
    Thanked 74 Times in 54 Posts

    Default Re: QTableView row heights

    Quote Originally Posted by wysota
    Item size is determined by the size returned by delegate's sizeHint method.
    I eventually discovered that, but it wasn't working for me. My problem was that the QHeaderView was placing a minimum size on the row heights, so that while I could make the rows bigger, I could not make them smaller. See my solution above.

  2. #2
    Join Date
    Nov 2006
    Location
    Dresden, Germany
    Posts
    109
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    9
    Thanked 12 Times in 10 Posts

    Default Re: QTableView row heights

    I still have a problem with my row heights. I cannot make the font of my headers smaller, because I use them. And the size hint I set in my costum item delegate only works for the actual table cells, but not for the headers.

    Does anyone know how I can set the row heights for the headers?

    Bye,
    Andreas

Similar Threads

  1. Replies: 3
    Last Post: 29th January 2009, 09:38
  2. QTableView in ui with model/delegate
    By tpf80 in forum Qt Programming
    Replies: 7
    Last Post: 7th November 2008, 00:00
  3. row height in QTreeView and QTableView
    By yuriry in forum Qt Programming
    Replies: 2
    Last Post: 9th October 2008, 01:58
  4. make QTableView work as a multi-column list view
    By wesley in forum Qt Programming
    Replies: 1
    Last Post: 11th March 2008, 15:43
  5. Multi-line messages in QTableView
    By Conel in forum Qt Programming
    Replies: 6
    Last Post: 13th April 2006, 14:49

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.