Results 1 to 4 of 4

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

  1. #1
    Join Date
    Feb 2013
    Location
    Banzart
    Posts
    54
    Thanks
    17
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default change the size of table widget header labels in qt

    Hello


    Is it possible to change the size of the HorizontalHeaderLabels in Qt ?
    Sliver_Twist

  2. #2
    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

    Do you mean header label font size?
    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.

  3. #3
    Join Date
    Feb 2013
    Location
    Banzart
    Posts
    54
    Thanks
    17
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

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

    now i mean set the size of the header label container field .
    I have three words in the label and when showing the table i do not get a the proper display for it
    Sliver_Twist

  4. #4
    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.

  5. 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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.