Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. Hide bottom right borders in QTableWidget
Forum Updated to NodeBB v4.3 + New Features

Hide bottom right borders in QTableWidget

Scheduled Pinned Locked Moved Unsolved Qt for Python
2 Posts 1 Posters 245 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.
  • P Offline
    P Offline
    papinhio
    wrote on last edited by papinhio
    #1

    How can i style the bottom right corner of QTableWidget in case horizontal and vertical scrollbars are on?

    Screenshot 2023-11-22 225204.png

    I mean the square corner borders under vertical scrollbar and right to horizontal scrollbar.

    Edit: This only happens when i am applying style to QApplication (for example:

    self.app.setStyle("Fusion")
    

    or

    self.app.setStyle("")
    

    )

    1 Reply Last reply
    0
    • P Offline
      P Offline
      papinhio
      wrote on last edited by papinhio
      #2
      bottom_corner_widget = QtWidgets.QWidget(self.main_self.ui_manage_proccesses_window.table)
      
      bottom_corner_widget.setStyleSheet("QWidget{background:"+self.main_self.default_background_color+";width:13px;height:13px;}")
      
      bottom_corner_widget.setFixedHeight(13)
      
      bottom_corner_widget.setFixedWidth(13)
      
      bottom_corner_widget.move(self.main_self.ui_manage_proccesses_window.table.width()-13,self.main_self.ui_manage_proccesses_window.table.height()-13)
      
      bottom_corner_widget.show()
      

      This code creates a helper widget which has parent the table, dimensions like scrollbar dimensions, background-color like QDialog background color and position to bottom right corner of the table.

      Result:

      Screenshot 2023-11-23 085738.png

      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