Results 1 to 4 of 4

Thread: change the size of table widget header labels in qt

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Thanks
    3
    Thanked 452 Times in 435 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    15

    Default Re: change the size of table widget header labels in qt

    If I understand your problem, you have a long header label (text) which is not fitting in the column width, if so just increasing the column width will work. or better just call resizeColumnsToContents(); on the view
    When you know how to do it then you may do it wrong.
    When you don't know how to do it then it is not that you may do it wrong but you may not do it right.

  2. The following user says thank you to Santosh Reddy for this useful post:

    sliverTwist (19th April 2013)

Similar Threads

  1. Replies: 0
    Last Post: 20th December 2012, 15:00
  2. Replies: 2
    Last Post: 21st February 2012, 10:21
  3. Replies: 0
    Last Post: 9th December 2011, 17:39
  4. Qt Designer Size of table widget inside Tab Widget is not flexible.
    By akash in forum Qt Tools
    Replies: 2
    Last Post: 14th September 2011, 11:45
  5. How to prevent table header from font change.
    By kenny_isles in forum Qt Tools
    Replies: 1
    Last Post: 14th February 2007, 19:01

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.