QTableWidget's horizontal QHeaderViews are suddenly hidden

230 Views Asked by At

I'm working on a project that has a lot of tables. I used QTableWidget. Horizontal headers are visible, verticals are hiddden. I wrote style sheet for one of them, rest of them are just copied from that one. In Qt Designer, everything is alright, but when I run the program, there's not headers on QTableWidgets. I checked horizontalHeaderVisible property of every tables, it checked. I don't know why this is happening. It seems bug to me.

1

There are 1 best solutions below

0
Abdurahmon On

I'm using Qt creator v4.13.1. In designer, everything is ok as I said. Then I opened all .ui files in notepad, and searched for horizontalHeaderVisible property. Of course there were many false values as I expected, then I changed them to true. Then headers became visible. It seems bug of Qt creator.