title: Showing the same QPushButton on multiple widgets
body: <p>I have two widgets (Real and Fake) and one of them has a QPushButton. Now I want the same button to be shown in the other widget. How do I do it?</p>
  
  <p>I dont want to create a copy, I want the same QObject on to be shown another widget at the same time without changing the parent.</p>
  
  <p>As an example, in the following I want "mybutton" to be shown in both the widgets at the same time;</p>
  
  <pre><code>  QWidget *widgetReal = new QWidget();
    QWidget *widgetFake = new QWidget();
    widgetReal-&gt;setWindowTitle("Real");
    widgetFake-&gt;setWindowTitle("Fake");
    widgetReal-&gt;show();
    widgetFake-&gt;show();
  
    QGridLayout *layoutReal = new QGridLayout();
    QGridLayout *layoutFake = new QGridLayout();
  
    QPushButton *mybutton = new QPushButton();
  
    layoutReal-&gt;addWidget(mybutton);
    widgetReal-&gt;setLayout(layoutReal);
  
    layoutFake-&gt;addWidget(mybutton); //this changes the parent and this is not what I want to do
    widgetFake-&gt;setLayout(layoutFake);
  
    mybutton-&gt;show();
  </code></pre>
  
  <p>The reason I need this is because I have a bunch of MDISubWindows and they contain some controls (buttons, checkboxes....etc). Now I want to select some of these controls from these widgets and create a single widget. The reason am doing this is because, I dont want to display all of my MDISubwindow when am using only single button in it 
  Any suggestions are really helpful. Thank you.</p>
  
  <p>-CV</p>