title: Qt object/class to Qt ui file
body: <p>This may seem like a very strange question but is it possible to generate a Qt Designer form (<code>.ui</code>) from a Qt object, say something that inherits <code>QWidget</code>?</p>
  
  <p>My plan is to build a simple dynamic form in code as the user picks what stuff they want e.g fields, type of control and then dump out a <code>.ui</code> file so that they can tweak the layout if needed after.</p>
  
  <p>The code will then use the <code>QUiLoader</code> class to reload the <code>ui</code> file and show the modified or not <code>ui</code> file.</p>