I have a QFrame and QTableWidget built-in in QFrame. When I drag my QTableWidget I see an extra space such as the following picture. I put a circle in picture. My project is RTL : Right To Left.

Question: How i solve my unexplained space? enter image description here

有帮助吗?

解决方案

That's just the extra space that the table view didn't need for your columns in its current state. You can have the last column fill all available remaining space by setting the stretchLastSection property to true. I believe it's an option in designer, or you can do it programatically:

myTable->horizontalHeader()->setStretchLastSection(true);
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top