[Qt-interest] why is this not allowed?

Sean Harmer sean.harmer at maps-technology.com
Sat May 8 11:23:59 CEST 2010


On 07/05/2010 20:21, Gabriele Kahlout wrote:
> QGridLayout signupLayout = *loginLayout;
>
> I'd like to reuse exacly the same, but add an extra field.

You cannot copy QObjects. Instead just reparent things as needed by 
calling signupWidget->setLayout( loginLayout ) or similar.

Sean



More information about the Qt-interest-old mailing list