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 horizontal header height of QTableView
Forum Updated to NodeBB v4.3 + New Features

Change the horizontal header height of QTableView

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 3 Posters 16.5k Views 2 Watching
  • 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.
  • RatzzR Offline
    RatzzR Offline
    Ratzz
    wrote on last edited by
    #1

    How to change the height of horizontal header in QTableView.

    --Alles ist gut.

    ? 1 Reply Last reply
    0
    • Chris KawaC Offline
      Chris KawaC Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by
      #2

      The easiest would be to set a fixed height: tableView->horizontalHeader()->setFixedHeight(100);

      RatzzR 1 Reply Last reply
      3
      • RatzzR Ratzz

        How to change the height of horizontal header in QTableView.

        ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        @Ratzz Have you tried setMinimumHeight() and setMaximumHeight()?

        1 Reply Last reply
        1
        • Chris KawaC Chris Kawa

          The easiest would be to set a fixed height: tableView->horizontalHeader()->setFixedHeight(100);

          RatzzR Offline
          RatzzR Offline
          Ratzz
          wrote on last edited by
          #4

          @Chris-Kawa @Wieland
          Both Solution worked :)

          --Alles ist gut.

          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