在没有标题的QTableWidget中添加边框

时间:2020-06-23 18:24:57

标签: python pyqt pyqt5 qtstylesheets

我想重新创建一个简单的表而不显示表头:

2x3 grid representing a table

但是在隐藏标题和stretching them以避免空白之后,我得到了:

2x3 grid without the top and left borders

我正在使用的样式表:

QTableWidget{
            background-color: transparent;
}

我曾尝试modify headers style,但由于两个人都被隐藏了,所以没有用。它不必具有响应性,并且可以使用固定大小。

0 个答案:

没有答案