use QFrame as addStretch():
Is it possible to replace addStretch() with a line in such a way that it is not the emptiness that pushes widgets apart on the layout but rather a line?
This is my line:
Code:
vDivider1->setLineWidth(2);
Can this be combined with layout->addStretch(); so that the line is stretched and pushes the widgets away from each other?
Re: use QFrame as addStretch():
I'm not 100% sure if I understood the problem but I guess you could set an "expanding" size policy:
PS. Wouldn't it be easier to use Qt Designer to handle all this? ;)
Re: use QFrame as addStretch():
Yes, you understood the question 100% and you solved it!
Thanks very much!
P.S. Naah, I'm not a huge fan of Qt Designer.