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. QtableWidget header background color
Forum Updated to NodeBB v4.3 + New Features

QtableWidget header background color

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

    Hello everyone, how to make the vertical and Extreme background color of Table Widget transparent? It looks like this:/ I want to delete the place I marked in the image
    Ekran Görüntüsü (43).png

    1 Reply Last reply
    0
    • JonBJ Online
      JonBJ Online
      JonB
      wrote on last edited by
      #2

      Is this the cornerButtonEnabled ? Do you have to disable it or else include it in your styling?

      A 1 Reply Last reply
      0
      • JonBJ JonB

        Is this the cornerButtonEnabled ? Do you have to disable it or else include it in your styling?

        A Offline
        A Offline
        AlperenCvs
        wrote on last edited by
        #3

        @JonB The problem is not the corner, the background color of the vertical and horizontal columns is different, so a strange different color appears exactly where I marked, but thank you

        1 Reply Last reply
        0
        • A AlperenCvs has marked this topic as solved on
        • A Offline
          A Offline
          AlperenCvs
          wrote on last edited by
          #4

          Solution is here :

          self.tableWidget.setStyleSheet("""QTableCornerButton::section { background-color: 'transparent'}""")
          self.tableWidget.setCornerButtonEnabled(False)

          thanks again @JonB

          1 Reply Last reply
          1

          • Login

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