title: Creating a class in custom template for Qt Creator new project wizard?
body: <p>I've created a custom template for Qt Creator wizard which contains three files:</p>
  
  <ul>
  <li>main.cpp</li>
  <li>project.pro</li>
  <li>wizard.xml</li>
  </ul>
  
  <p>Now I'd also like to include a class to the project when the project is created.
  This class (including <code>.h</code> and <code>.cpp</code> files) should be named based on the user's input in the wizard.</p>
  
  <p>I already managed to create the wizard for asking the class's name:</p>
  
  <pre><code>&lt;fields&gt;
      &lt;field mandatory="true" name="CLASS"&gt;
          &lt;fieldcontrol class="QLineEdit" defaulttext="MyClass" /&gt;
          &lt;fielddescription&gt;Class name:&lt;/fielddescription&gt;
      &lt;/field&gt;
  &lt;/fields&gt;
  </code></pre>
  
  <p>Now how do I create <code>.h</code> and <code>.cpp</code> files from the user input?</p>