Duplicate a QWidget

Viewed 9840

I need to be able to copy a Qwidget so I can duplicate a window because it will change during runtime. is this possible?

void Duplicate(QWidget * Show)
{
 //I tried...
 Qwidget Shw = *Show; //but operator= is private
 //and the copy constructor (I think), which is also private
 Qwidget Shw(*Show);
 //

 Shw.Show();
}
1 Answers
Related