Does anyone know how to remove this white space? This is my current stylesheet:
QTableView {
background-color: #EEEEEE;
}
QTableView::item {
background-color: transparent;
}
QHeaderView::section {
background-color: transparent;
padding: 5px;
border: 1px solid #D3D3D3;
border-right: none;
}
QHeaderView::section:selected {
background-color: #D3D3D3;
}

QHeaderView { background: transparent }andQTableCornerButton::section { background: transparent }, as explained in the Qt Style Sheets Reference. But you must also be aware that the style may still override that, which is one of the many reasons for which QSS shouldn't be considered reliable in complex cases like this.