Frage

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

War es hilfreich?

Lösung

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);
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top