[solved] Strange behavior of style sheets for QTableView



  • 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.



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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.