There is a TrollTech Wizard for Qt 4, but no way to configure Code::Blocks for Qt 5.
Have you tried the wizard?
The wizards are just squirrel script everyone can modify, so if you're interested in QT5 wizard, please provide a patch.
To see the source of the wizard: right click on it -> edit script or something like this.