Reputation: 2935
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?
Upvotes: 0
Views: 160
Reputation: 17535
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);
Upvotes: 1