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. Vertical Header In tableview Problem
Forum Updated to NodeBB v4.3 + New Features

Vertical Header In tableview Problem

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 845 Views 1 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.
  • A Offline
    A Offline
    Asad
    wrote on last edited by
    #1

    Dear All,
    I am trying to resize the Vertical Header according to content.My table view is m_tableView.
    for this I am using the code:
    m_tableView->verticalHeader()->setSectionResizeMode(QHeaderView::ResizeToContents);
    but that is not working.
    I tried something other but that is a hook only.
    Please can anyone suggest a solution.
    Thanks.

    1 Reply Last reply
    0
    • D Offline
      D Offline
      DBoosalis
      wrote on last edited by
      #2

      Is it the width of the column you want to be bigger. If so you need to set this in the horizontal header(). And if not this, have you tried using a ItemDelegate and reimplementing the sizeHint

      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