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. How to resize QTableWidget vertical header?
Forum Update on Monday, May 27th 2025

How to resize QTableWidget vertical header?

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 781 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.
  • C Offline
    C Offline
    cxam
    wrote on 24 Apr 2017, 12:45 last edited by
    #1

    Hi, I would like to resize the QTableWidget vertical header, (the number count located on the left margin) because I use it as a button as I would like to make it bigger.

    Stay Hungry, Stay Foolish

    1 Reply Last reply
    0
    • V Offline
      V Offline
      VRonin
      wrote on 24 Apr 2017, 13:08 last edited by
      #2

      tableWidget->verticalHeader() and then

      http://doc.qt.io/qt-5/qheaderview.html#resizeSection
      http://doc.qt.io/qt-5/qheaderview.html#resizeSections
      http://doc.qt.io/qt-5/qheaderview-obsolete.html#setResizeMode
      http://doc.qt.io/qt-5/qheaderview.html#setSectionResizeMode

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      1 Reply Last reply
      1

      1/2

      24 Apr 2017, 12:45

      • Login

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