Quantcast
Channel: QtWebEngine
Viewing all articles
Browse latest Browse all 13965

Template wizard variables

$
0
0
I have a template to create some custom classes in qt creator. Here is a snippet:     <files>         <file source="class.cpp" target="%ClassName%.%CppSourceSuffix%" openeditor="true" />         <file source="class.h" target="%ClassName%.%CppHeaderSuffix%" openeditor="true" />     </files>       <fieldpagetitle>Class parameters</fieldpagetitle>     <fields>         <field name="ClassName">             <fieldcontrol class="QLineEdit" validator="^[a-zA-Z0-9_]+$" defaulttext="" />             <fielddescription>Class name:</fielddescription>         </field>         <field name="Namespace">             <fieldcontrol class="QLineEdit" validator="^[a-zA-Z0-9_]+$" defaulttext="" />             <fielddescription>Namespace:</fielddescription> When I try to use this now instead of getting: FooClass.cpp and FooClass.h I get FooClass%.cpp% and FooClass%.h% If I drop the % at the end of the variable I then get %Classname.%CppSourceSuffix. I’m on qtcreator version 2.7.81, though I don’t think that number ever changes. Master branch built May 27th.

Viewing all articles
Browse latest Browse all 13965

Trending Articles