How to make the actual table adjust its size to the QTableWidget container?

末鹿安然 提交于 2021-02-07 20:24:00

问题


I do not even know how to ask this question. I have the following table:

enter image description here

You can see how the QTableWidget is selected, but the actual table is smaller. How can I make the table to be the same size of the QTableWidget container?

I am using QT-Designer.

Thanks!


回答1:


from Qt Designer there are

horizontalHeaderStretchLastSection

and

verticalHeaderStretchLastSection

properties on QTableWidget.



来源:https://stackoverflow.com/questions/13689184/how-to-make-the-actual-table-adjust-its-size-to-the-qtablewidget-container

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!