13
我需要能够复制一个Qwidget,所以我可以复制一个窗口,因为它会在运行时更改。这可能吗?复制一个QWidget
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();
}