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. Remove QTableWidget header separator line
Forum Updated to NodeBB v4.3 + New Features

Remove QTableWidget header separator line

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 2 Posters 1.1k 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.
  • H Offline
    H Offline
    hbatalha
    wrote on 4 Apr 2021, 01:28 last edited by
    #1

    I want to know if there is a way to remove/hide QTableWidget header separator line. If there's, if it's possible to remove only the one you choose.

    Screenshot_1.png

    I want to remove/hide that line because I need that column but I don't want it to have a header name.

    Thanks you.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 4 Apr 2021, 19:54 last edited by
      #2

      Hi,

      Do you mean have one header span two columns ?

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

      H 1 Reply Last reply 4 Apr 2021, 21:17
      0
      • S SGaist
        4 Apr 2021, 19:54

        Hi,

        Do you mean have one header span two columns ?

        H Offline
        H Offline
        hbatalha
        wrote on 4 Apr 2021, 21:17 last edited by
        #3

        @SGaist said in Remove QTableWidget header separator line:

        Do you mean have one header span two columns ?

        Yes

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 5 Apr 2021, 19:38 last edited by
          #4

          You have an example here using a subclass of QHeaderView.

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

          H 1 Reply Last reply 6 Apr 2021, 16:16
          1
          • S SGaist
            5 Apr 2021, 19:38

            You have an example here using a subclass of QHeaderView.

            H Offline
            H Offline
            hbatalha
            wrote on 6 Apr 2021, 16:16 last edited by
            #5

            @SGaist Thank you, the code works now I will try integrating it into my project.

            1 Reply Last reply
            0

            4/5

            5 Apr 2021, 19:38

            • Login

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