Results 1 to 2 of 2

Thread: QTableWidget cellwidgets ResizeToContents

  1. #1
    Join Date
    Dec 2013
    Location
    Colorado
    Posts
    45
    Thanks
    15
    Thanked 2 Times in 2 Posts
    Qt products
    Qt5
    Platforms
    Windows Android

    Default QTableWidget cellwidgets ResizeToContents

    I have a QTableWidget whose cells are QTextEdits. setSectionResizeMode( QHeaderView::ResizeToContents ) has no effect, as the cells remain the same size regardless of content.
    I'm using a QVBoxLayout. Any way to get the cell widgets to ResizeToContents?

  2. #2
    Join Date
    Dec 2013
    Location
    Colorado
    Posts
    45
    Thanks
    15
    Thanked 2 Times in 2 Posts
    Qt products
    Qt5
    Platforms
    Windows Android

    Default Re: QTableWidget cellwidgets ResizeToContents

    I'm thinking a custom item delegate. Correct me if I'm wrong.

Similar Threads

  1. Must all cellWidgets in a QTable be the same widget type?
    By davethomaspilot in forum Qt Programming
    Replies: 4
    Last Post: 9th January 2013, 17:21
  2. QTableWidget with many cellwidgets update very slow!
    By linxs in forum Qt Programming
    Replies: 4
    Last Post: 19th November 2012, 07:01
  3. Replies: 2
    Last Post: 27th June 2011, 18:59
  4. dragging cellwidgets in tablewidgets
    By hubipet in forum Qt Programming
    Replies: 2
    Last Post: 13th May 2009, 14:54
  5. QTableWidget won't sort cellwidgets!!!
    By Arsenic in forum Qt Programming
    Replies: 7
    Last Post: 21st July 2007, 10:41

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.