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 hide vertical header but show horizontal header in QTableView
Forum Updated to NodeBB v4.3 + New Features

How to hide vertical header but show horizontal header in QTableView

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 3.8k 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.
  • P Offline
    P Offline
    pcsagan
    wrote on 14 Feb 2017, 21:25 last edited by
    #1

    Hello,

    I'm trying to hide the vertical header but show the horizontal header of a QTableView.

    Calling view->horizontalHeader()->hide() hides both horizontal and vertical headers.
    Calling view->verticalHeader()->hide() hides both horizontal and vertical headers.

    How do I hide just the horizontal header and show the vertical header? Thanks

    A mosquito was heard to complain, that chemists had poisoned his brain, the cause of his sorrow was paradichlorodiphenyltrichloroethane.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 14 Feb 2017, 21:31 last edited by
      #2

      Hi,

      Can you share how you are setting up your view ?

      Which version of Qt are you using ? On which platform ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1

      1/2

      14 Feb 2017, 21:25

      • 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