EricF
13th December 2007, 13:28
Hi, is there a way to set a column width in QHBoxLayout. I've been trying to play with the size policy of elements in the cell but even setting them to fixed, the cell still grow.
Is there a kind of stretch factor that means no stretch ?
What I'm trying to do is a kind of watch window like in Visual Studio where you have the variable name and a field beside to edit it. And since I want these line to be dragable, I thought of using multiple QHBoxLayout inside a QVBoxLayout. But the label on the left obviously won't align.
I would have used a QGridLayout however, it does not support insert(for drag and drop).
Would I be better served using a tricked TreeView or TableView ?
Is there a kind of stretch factor that means no stretch ?
What I'm trying to do is a kind of watch window like in Visual Studio where you have the variable name and a field beside to edit it. And since I want these line to be dragable, I thought of using multiple QHBoxLayout inside a QVBoxLayout. But the label on the left obviously won't align.
I would have used a QGridLayout however, it does not support insert(for drag and drop).
Would I be better served using a tricked TreeView or TableView ?