Qt Forum

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

    Solved Change the horizontal header height of QTableView

    General and Desktop
    3
    4
    13628
    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.
    • Ratzz
      Ratzz last edited by

      How to change the height of horizontal header in QTableView.

      --Alles ist gut.

      ? 1 Reply Last reply Reply Quote 0
      • Chris Kawa
        Chris Kawa Moderators last edited by

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

        Ratzz 1 Reply Last reply Reply Quote 3
        • ?
          A Former User @Ratzz last edited by

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

          1 Reply Last reply Reply Quote 1
          • Ratzz
            Ratzz @Chris Kawa last edited by

            @Chris-Kawa @Wieland
            Both Solution worked :)

            --Alles ist gut.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post