My bad, I was asking with QHBoxLayout in mind.
mHBoxLayout->AddWidget(lineEdit, 10, Qt::AlignLeft);
mHBoxLayout->AddWidget(lineEdit, 10, Qt::AlignLeft);
To copy to clipboard, switch view to plain text mode
In this case the "stretching value" is 10 and the widget is aligned on the left.
Problem is since it's aligned to the left it wont stretch anymore.
What if for example we want the widget to expand to a certain value without occupying the whole space of a layout.
I'm not sure I'm making sense so let me give you an example :
If I have a QTextEdit paragraph and I want to align the paragraph to the left by keeping the stretching at the same time. How am I suppose to achieve this ? in the layout ? in the QTextEdit widget ?
Thanks.
Bookmarks