lars_andersson
15 years agoNew Contributor
Controlling the layout of a tableWidget
Hi
I've created a custom component that uses a 'tableWidget'. What I can't figure out is how to control the layout, such as setting column widths and controlling the width and height of the table. I've tried to create an instance of LTable, get the TableModel and do it the way it's done in Swing, but that doesn't help. Can someone please explain how it's done in loadUI?
/ Lars
By the way, if someone has a description of the different widgets and constraints available laying out your component, that would be great.
I've created a custom component that uses a 'tableWidget'. What I can't figure out is how to control the layout, such as setting column widths and controlling the width and height of the table. I've tried to create an instance of LTable, get the TableModel and do it the way it's done in Swing, but that doesn't help. Can someone please explain how it's done in loadUI?
/ Lars
By the way, if someone has a description of the different widgets and constraints available laying out your component, that would be great.