title: Qt: using one widget in several layouts
body: <p>I have a QTabBar, and all tabs are supposed to have the same widget in them:</p>
  
  <pre><code>layout1-&gt;addWidget(w);
  layout2-&gt;addWidget(w);
  </code></pre>
  
  <p>However calling <code>addWidget</code> the second time causes this widget to disappear in the first layout.</p>
  
  <p>Is there any way to use one widget to insert it in several tabs?</p>
  
  <p>Of course I can always create a new widget instance for every tab, but that takes extra time and memory.</p>