Changing the spacing between QTableView cells using stylesheet in PyQt5

前端 未结 1 1205
清歌不尽
清歌不尽 2021-01-26 15:05

How to add spaces between table cells using QSS selectors. I\'ve tried the border-spacing selector, the item pseudo-class with the border selector, but it all doesn\'t work as i

相关标签:
1条回答
  • 2021-01-26 15:24

    With style-sheets, you are either able to separate the individual cells via border-spacing (as in your example), or via padding:

    app.setStyleSheet("QTableView::item { border:0px; padding: 150px; }")
    
    0 讨论(0)
提交回复
热议问题