title: How to generate program code from ui-forms?
body: <p>I have a UI, generated with <code>Qt Designer</code>. It's generates me a XML code like these:</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  &lt;ui version=&quot;4.0&quot;&gt;
   &lt;class&gt;ColorDialog&lt;/class&gt;
   &lt;widget class=&quot;QDialog&quot; name=&quot;ColorDialog&quot;&gt;
    &lt;property name=&quot;geometry&quot;&gt;
     &lt;rect&gt;
      &lt;x&gt;0&lt;/x&gt;
      &lt;y&gt;0&lt;/y&gt;
     and etc
  </code></pre>
  <p>I want to remove this UI and edit a view by C++ code like these:</p>
  <pre><code>    for (auto button:m_buttonColorsList)
      {
          m_colorsLayout-&gt;addWidget(button);
      }
  
      m_mainGroupBox-&gt;setLayout(m_colorsLayout);
  
      m_mainLayout-&gt;addWidget(m_mainGroupBox);
  
      setLayout(m_mainLayout);
  </code></pre>
  <p>How I can convert the exiting form to code?</p>