The columns of my QTableWidget do not fill in the space of the table, so that an empty space is left on the right hand-side. How to make the columns of my QTableWidget assume the maximum space so as to fill in this space?
相关问题
- how to define constructor for Python's new Nam
- streaming md5sum of contents of a large remote tar
- How to get the background from multiple images by
- Evil ctypes hack in python
- Correctly parse PDF paragraphs with Python
The headers of the table have methods for controlling this:
or:
I don't know of any method to set this property to the QTableWidget's content. However, I could use the following to get the columns to resize:
This resizes the first column only. To resize all columns, one should get all children item and apply column width / number of items.