Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Change the size of table widget header labels in qt

    General and Desktop
    2
    3
    1761
    Loading More Posts
    • 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
      sliver_twist last edited by

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

      1 Reply Last reply Reply Quote 0
      • S
        sliver_twist last edited by

        resizeColumnsToContents();

        1 Reply Last reply Reply Quote 0
        • B
          b1gsnak3 last edited by

          "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 Reply Quote 0
          • First post
            Last post