title: Qt Extending my own widget
body: <p>To put it simply, I want a new class that extends a custom widget that I've made, and thus have full access to it's UI. </p>
  
  <p>I've tried several different methods so far based on how one would normally subclass/extend classes, but I'm somehow failing horribly for so many different reasons.</p>
  
  <p>Additionally, simply using my widget as a member in my new class wouldn't do for this situation.</p>
  
  <p>Can someone illustrate a quick example of how I would do this? I have done a bunch of searching but I can't seem to find any hits relating to exactly what I'm trying to do
  If all else fails I will simply copy over the code and make an actual new widget, which technically would have saved me lots time, but it just doesn't feel right doing that.</p>
  
  <p>My first instinct was to do something like this ( <code>Qwe</code> being my new class, <code>Asd</code> being the widget ):</p>
  
  <pre><code>class Qwe : Asd {public: ...}
  </code></pre>
  
  <p>And I even made the widget's Ui public, but then I just got the error :</p>
  
  <blockquote>
    <p>use of undefine type Ui::Asd</p>
  </blockquote>
  
  <p>whenever I tried to access the Ui's elements.</p>