Results 1 to 3 of 3

Thread: how can i have QTableWidget with autosize row height

  1. #1
    Join Date
    Nov 2010
    Posts
    30
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default how can i have QTableWidget with autosize row height

    hi
    is it possible to have QTableWidget with autosize row height ..

    for example a item have 10 line text so row height for this row must 150 px and next item have 2 line text to row height for this item must be 50 px..

  2. #2
    Join Date
    Jan 2011
    Location
    Sri Lanaka
    Posts
    64
    Thanks
    39
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60

    Default Re: how can i have QTableWidget with autosize row height

    Try wordWrap property in QTableWidget.

  3. #3
    Join Date
    Nov 2010
    Posts
    30
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: how can i have QTableWidget with autosize row height

    Quote Originally Posted by deepal_de View Post
    Try wordWrap property in QTableWidget.
    thats not work....

    i found !

    tableWidget->resizeRowsToContents();

Similar Threads

  1. Replies: 1
    Last Post: 6th January 2011, 04:19
  2. QFontMetrics.height()
    By Caius Aérobus in forum Qt Programming
    Replies: 8
    Last Post: 4th April 2009, 17:36
  3. How to set rows of QtableWidget to the same height?
    By sawerset in forum Qt Programming
    Replies: 3
    Last Post: 7th December 2008, 18:09
  4. string height
    By agaf in forum Qt Programming
    Replies: 1
    Last Post: 24th January 2007, 08:21
  5. height()
    By mickey in forum Newbie
    Replies: 1
    Last Post: 22nd March 2006, 20:32

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.