Solved StackedWidget / TableWidget Layout dilema
-
Since last night, I've tried to get this right and can't. I'm using a stacked widget. On two of the pages I have tablewidgets. One of them laid out perfectly, the other not so much.
The first widget lays out same as the listview to its left.
However, my other tablewidget lack the same width and height as the first one, making it odd-looking.
What in the world can be done to make this tablewidget layout the same as the first one?
-
Hi,
Can you show the code you use to create these widgets ?
-
@SGaist - I didn't create them with code. Both were created with Creator.
-
My bad, I missed that you were using designer.
Why not have your QTableWidgets in a layout ?
-
@Driftwood on your second page there is a vertical layout which may have default contents margins. Set all of them to 0.
SGaist is right. Better to use some layout for all widgets. -
@JoeCFD - I just did that and came back here to your same solution.
I'm just now getting back into Qt after not using it for a while. Let's see what I can go dumb on next :D
Thank you both for your input.