PDA

View Full Version : Is it possible to duplicate or clone a Qwiget at run mode ?



tonnot
22nd July 2011, 13:26
Any way ?
I'd want to create a new Qwidget = clone(existing_widget);
Thanks

pkj
22nd July 2011, 13:36
Nope. See Q_DISABLE_COPY . They have declared copy ctor and assignment operator in private section. so no way. specifically for reason that you dont do it. may i know y you want to do it.