[Qt-interest] setLayout warning ?

Gan Xiebin gan.xiebin at gmail.com
Tue Jun 2 06:50:32 CEST 2009


On Tue, Jun 2, 2009 at 11:04 AM, Malyushytsky, Alex <alex at wai.com> wrote:

> By the way your problem seems is not warning.
> SetupDialog() is called multiple times, which leads to
> The multiple allocation of the widgets.
>
> You have to either check that you already have allocated widgets and don't
> allocate them and just call exec.
> Or better split the code in two part - initialization and exec.
>
> Regards,
>     Alex
>
>
>
Thanks a lot for your respond.
I did look at the document, and split the code.
It works for me now.

Thanks,
Bin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090602/767147c5/attachment.html 


More information about the Qt-interest-old mailing list