That's fine of course. But in Designer you can just promote your QLineEdits to the subclass. Already having them laid out doesn't matter.