Oh, I set the layout in the Qt Designer to horizontal.