That doesn't make a difference. The generated setupUi() simply calls setPlaceholderText(). Doing it a second time via code doesn't change the outcome. A minimal reproduction is just a widget with a line edit, opened in Qt Designer: https://i.imgur.com/awoGAFK.png