Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. Changing the width of the first column in a qTable
Forum Updated to NodeBB v4.3 + New Features

Changing the width of the first column in a qTable

Scheduled Pinned Locked Moved Solved Qt for Python
2 Posts 1 Posters 833 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.
  • U Offline
    U Offline
    uberMaximus
    wrote on last edited by uberMaximus
    #1

    Hi.

    I want to set a minimum width for the very first column in a qtable widget (NOT the first column of data, ie: column 0)

    I have found plenty of examples on how to control the width/spacing of coloumns and rows that hold the data from the model, but I want to change the minimum width of the index column for each row on the far left of a qtable.

    I don’t even know what this area is called.
    Screenshot 2023-10-03 at 1.01.50 pm.png
    Does anyone know how to force a min width here, or what this area is called, so I can look it up myself?

    1 Reply Last reply
    0
    • U Offline
      U Offline
      uberMaximus
      wrote on last edited by
      #2

      Found it, its the .verticalHeader()

      1 Reply Last reply
      0
      • U uberMaximus has marked this topic as solved on

      • Login

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