I just saw ui->setupUi(this); so you're doing it wrong: you should add your QLineEdits to the layout you put in your Designer made UI.