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 )
2.1m questions
2.1m answers
60 comments
57.0k users