Do you put the button INSIDE the text field? Why not put it next to the lineedit using a layout?