Default layout alignment
Unsolved
General and Desktop
-
Hi..
What is the default layout alignment?..
all four enumerated layouts behave differently as expected... but when you do not set alignment it behave different too.. it looks like the default behaviour is different than the rest..QHBoxLayout* lay = new QHBoxLayout(this); lay->setAlignment(Qt::AlignLeft); //to left QHBoxLayout* lay = new QHBoxLayout(this); lay->setAlignment(Qt::AlignHCenter); to center QHBoxLayout* lay = new QHBoxLayout(this); lay->setAlignment(Qt::AlignRight); to righ QHBoxLayout* lay = new QHBoxLayout(this); lay->setAlignment(Qt::AlignJustify); //depends on content, generally centered QHBoxLayout* lay = new QHBoxLayout(this); //no preferred alignment, it just shows different than others....