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 ?
-
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. -
@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.