[Python] How to remove this black stuff and weird lines from my QTableView?

Discussão em 'Python' iniciado por Stack, Maio 25, 2025.

  1. Stack

    Stack Membro Participativo

    So I want my QTableView to be like rounded and have shadow. When I added a border-radius, the problem then started

    screenshot

    currently my qss is this:

    #reservations_table_view {
    border: transparent;
    background-color: white;
    color: black;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px
    }

    #reservations_table_view QHeaderView::section {
    background-color: #F1F1F1;
    color: black;
    border: none;
    padding: 5px;
    }

    #reservations_table_view QTableCornerButton::section {
    background-color: #F1F1F1;
    border: none;
    border-top-left-radius: 10px;
    }

    #reservations_table_view QHeaderView::section:first {
    border-top-left-radius: 10px;
    }

    #reservations_table_view QHeaderView::section:last {
    border-top-right-radius: 10px;
    }

    Continue reading...

Compartilhe esta Página