简体   繁体   中英

QTableWidget's horizontal QHeaderViews are suddenly hidden

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM