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();
}