[Qt-interest] A error about QLabel::setText(const QString &) ?

Kermit Mei kermit.mei at gmail.com
Fri Feb 27 16:32:13 CET 2009


Guido Moonen wrote:
> Hi Kermit,
>
> It seems one of the label_xx pointers is still NULL, hence the this=0x0
> in the QLabel::setText.
>
> Have you initialized these labels?
>
> otherwise try to protect the calls using
>
> if (label_xx != NULL)
>     label_xx->setText(strxx);
>
> With kind regards,
>   Guido Moonen
>
>   
Oh,yes. I just forgot to call setuiUi(this).
Thank you!




More information about the Qt-interest-old mailing list