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. [solved] Strange behavior of style sheets for QTableView
Forum Updated to NodeBB v4.3 + New Features

[solved] Strange behavior of style sheets for QTableView

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 1.1k Views 1 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.
  • M Offline
    M Offline
    MaximAlien
    wrote on last edited by
    #1

    Hi all!

    I have an interesting issue with QTableView and simple QSS for it. I want to set bottom border, but when I set @border-bottom: 2px solid black;@ nothing happens. When I set border for top: @border-top: 2px solid black;@ two borders appear on both top and the bottom.

    This is "screenshot":https://www.dropbox.com/s/4r0447swm0ek7jf/test.png where QTableView is child of QWidget. There are no problems setting borders for QWidget.
    Maybe there is any workaround that may help. Please respond.

    Cheers,
    Max.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      MaximAlien
      wrote on last edited by
      #2

      Solution is pretty simple. To see bottom border simply add:
      @background-color@ property.

      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