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. I have a QTableWidget but need to remove horizontal header and vertical header data
Forum Updated to NodeBB v4.3 + New Features

I have a QTableWidget but need to remove horizontal header and vertical header data

Scheduled Pinned Locked Moved Solved General and Desktop
table widget
2 Posts 2 Posters 508 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.
  • J Offline
    J Offline
    jdent
    wrote on 1 May 2024, 22:05 last edited by
    #1

    I have a QTableWidget but need to remove horizontal header and vertical header data, how?

    C 1 Reply Last reply 1 May 2024, 22:14
    0
    • J jdent
      1 May 2024, 22:05

      I have a QTableWidget but need to remove horizontal header and vertical header data, how?

      C Offline
      C Offline
      ChrisW67
      wrote on 1 May 2024, 22:14 last edited by
      #2

      To hide the row and column header row entirely:

      tableWidget->horizontalHeader()->setVisible(false);
      tableWidget->verticalHeader()->setVisible(false);
      
      1 Reply Last reply
      2
      • J jdent has marked this topic as solved on 1 May 2024, 22:22

      1/2

      1 May 2024, 22:05

      • 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