[Qt-creator] Form Templates are compiled into Qt Creator ?

Jonas Eriksen Hjortlund JEH at pedax.com
Mon Aug 24 15:33:25 CEST 2015

Hi Tobias
Thank you for answering. 

So only way to add new template would compile a new version.

Having templates for dialogs are very handy. So each contains same elements etc.

However, since just adding an UI file to a project sort give the same, I do understand if you think
adding support for forms templates to the json wizard is too much work for what it does.

At least now I can have peace of mind and not try to add via the files since it will never happens.

Thank you a lot.

-----Original Message-----
From: Hunger Tobias [mailto:Tobias.Hunger at theqtcompany.com] 
Sent: 24. august 2015 13:26
To: Jonas Eriksen Hjortlund; 'qt-creator at qt-project.org'
Subject: Re: Form Templates are compiled into Qt Creator ?

Hi Jonas,

I have been reworking quite a few of our wizards since Qt Creator 3.4, so I guess I killed the wizard that actually used those templates but forgot to remove the templates themselves. I'll fix that.

The Qt Designer Form Class is still a old-style wizard that has basically everything hard-coded in formclasswizard.cpp and related classes.

That wizard should also use new json wizard syntax eventually, but there are a few things in it that are unique and not yet possible in the json wizards, but I am not sure it is worth the trouble of enableing the form handling code that is used in that code in the json wizard. Why generalize something that is used exactly once?

Best Regards,

Tobias Hunger, Senior Software Engineer | The Qt Company

The Qt Company GmbH, Rudower Chaussee 13, D-12489 Berlin
Geschäftsführer: Mika Pälsi, Juha Varelius, Tuula Haataja Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht Charlottenburg, HRB 144331 B

From: qt-creator-bounces+tobias.hunger=theqtcompany.com at qt-project.org <qt-creator-bounces+tobias.hunger=theqtcompany.com at qt-project.org> on behalf of Jonas Eriksen Hjortlund <JEH at pedax.com>
Sent: Monday, August 24, 2015 09:41
To: 'qt-creator at qt-project.org'
Subject: [Qt-creator] Form Templates are compiled into Qt Creator ?


Win 7 (64bit), Qt 5.5. mingw, Qt Creator 3.4.2

The Dialog Templates shown
when Pressing File->New ->Qt ->Qt Designer Form Class Like Dialog_with_Buttons_Right

Those files seems to live in
Qt\Tools\QtCreator\share\qtcreator\designer\templates and Enumerated in templates.xml

But even if I delete the whole folder, it is still shown in Creator ?!
and that seems to explain why adding a new one is 100% ignored and never listed.

So my questions are:
Can I add a new Form Template somehow ?

Are the external files something that was never fully implemented  or why does it include them When it seems that Creator never loads them.

Thank you
Qt-creator mailing list
Qt-creator at qt-project.org

More information about the Qt-creator mailing list