How do I add a header with data to a QTableWidget in Qt?

前端 未结 4 1138
轻奢々
轻奢々 2020-12-18 12:28

I\'m still learning Qt and I am indebted to the SO community for providing me with great, very timely answers to my Qt questions. Thank you.

I\'m quite confused on t

4条回答
  •  清歌不尽
    2020-12-18 13:05

    For posterity:

    The default implimentations of setHeaderData() and headerData() in QAbstractItemModel do not do anything. You can (should?) (re)impliment headerData() in order to return useful a label.

提交回复
热议问题