M
M
MaxLich2018-07-24 15:44:54
css
MaxLich, 2018-07-24 15:44:54

How to change the thickness of cell borders in QTableView using CSS?

Hello. I use a program from Siemens for building SCADA systems (WinCC OA), which is built on Qt. You cannot directly work with the Qt library in it, but you can change the display of graphic objects using CSS.
I need to change the thickness of cell borders (lines between cells). I found how to change the color of cell borders, but I can’t find anywhere how to change the thickness.
I also found how to change the width of the outer border of the table, but how to change the width of the cell borders!?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
MaxLich, 2018-07-25
@MaxLich

Somewhere I found this solution:

QTableWidget::item {
 border: 5px solid #CCCCCC;
}

QTableWidget::item {
 border-right: 5px solid #CCCCCC;
 border-radius: 10px;
}

But for some reason it does not work in WinCC OA. But it works in QSS Editor. So this is only part of the solution to this problem.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question