Results 1 to 16 of 16

Thread: QTableView: sizeHint() not getting invoked for custom delegate

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2008
    Location
    Germany
    Posts
    80
    Qt products
    Qt4
    Platforms
    MacOS X Windows
    Thanks
    6
    Thanked 1 Time in 1 Post

    Default Re: QTableView: sizeHint() not getting invoked for custom delegate

    Where is resizeRowsToContents() supposed to be called when the model gets updated?

  2. #2
    Join Date
    Dec 2012
    Posts
    1
    Platforms
    Windows

    Default Re: QTableView: sizeHint() not getting invoked for custom delegate

    I know this is resurrecting an old thread, but I wound-up here when trying to figure out why sizeHint wasn't being called when overridden in a custom QGraphicsWidget.
    Someone might wind-up here, so I'll add my discovery that having called setContentsMargins at any time before layout will solve this problem.

Similar Threads

  1. QTableView sizeHint() issues
    By akos.maroy in forum Qt Programming
    Replies: 3
    Last Post: 20th September 2008, 22:42

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