Hey there,
I'd like to add a Spacer item to a QBoxLayout that also stretch.
According to Qt documentation you can only add a stretch or a spacer.
Any way to add both at the same time?
Hey there,
I'd like to add a Spacer item to a QBoxLayout that also stretch.
According to Qt documentation you can only add a stretch or a spacer.
Any way to add both at the same time?
What behavior are you trying to achieve?
A stretcher with a minimum size I guess.
Here is an example :
Qt Code:
getLayout().insertSpacing(index, width); getLayout().insertStretch(index, stretch);To copy to clipboard, switch view to plain text mode
I would like this
Qt Code:
getLayout().insertStretch_and_space(index, width, stretch);To copy to clipboard, switch view to plain text mode
or equivalent
pakine (25th August 2010)
Bookmarks