In Qt, When I add widgets to my layout, they are vertically centered by default. Is there a way to "List" the widgets from top to bottom instead of centering them vertically?
use void QLayout::setAlignment ( Qt::Alignment alignment ) method to set alignment according to your choice.
void QLayout::setAlignment ( Qt::Alignment alignment )
1.4m articles
1.4m replys
5 comments
57.0k users