Reputation: 148
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.
Upvotes: 0
Views: 327
Reputation: 1
Setting the default value worked for me. enter image description here
Upvotes: -2
Reputation: 148
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.
Upvotes: 0