user427305
user427305

Reputation: 131

How to change the height of a horizontalHeader (QTableWidget)

I have a QTableWidget and I want to change the size of the horizontalHeaders. But there is only a function to set the width. But how do you change the height? Hope someone can help me.

Upvotes: 4

Views: 5956

Answers (1)

CookieOfFortune
CookieOfFortune

Reputation: 13974

Looking at the docs (I don't have Qt on my current system), you can get the QTableWidgetItem from horizontalHeaderItem and then call the setSizeHint(QSize) function to give it a size which contains a height property.

Upvotes: 4

Related Questions