Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Change the size of table widget header labels in qt

Change the size of table widget header labels in qt

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.9k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sliver_twist
    wrote on last edited by
    #1

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

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sliver_twist
      wrote on last edited by
      #2

      resizeColumnsToContents();

      1 Reply Last reply
      0
      • B Offline
        B Offline
        b1gsnak3
        wrote on last edited by
        #3

        "QHeaderView":http://qt-project.org/doc/qt-4.8/qheaderview.html#minimumSectionSize-prop has a method (setMinimumSectionSize(int)) which allows you to set a minimum size for all your sections. Along with setResizeMode this should be enough.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved