Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
QTableWidgetがあり、horizontalHeadersのサイズを変更したいと思います。ただし、幅を設定する機能しかありません。しかし、どのように高さを変更しますか?誰かが私を助けてくれることを願っています。
ドキュメントを見ると(現在のシステムにはQtがありません)、QTableWidgetItemfromを取得してから関数をhorizontalHeaderItem呼び出してsetSizeHint(QSize)、heightプロパティを含むサイズを指定できます。
QTableWidgetItem
horizontalHeaderItem
setSizeHint(QSize)