[Qt-interest] QPainter segmentation fault on Linux

Srdjan Todorovic todorovic.s at googlemail.com
Thu Feb 19 17:42:04 CET 2009


Hi,

2009/2/19 Davide <davide83 at gmail.com>:
> On Thu, Feb 19, 2009 at 4:30 PM, Srdjan Todorovic
> <todorovic.s at googlemail.com> wrote:
>> >    *qImage = QImage((u8*)Image.data, Image.width, Image.height,
>> > QImage::Format_RGB16);
>>
>> Did you *really* mean  *qImage? As in qImage is a pointer variable?
>
> Sorry but I don't understand your question.
>
> qImage is a pointer
>         QImage *qImage;
> Initialized in the class constructor
>         qImage = new QImage();
>
> There are errors in my code?

I would say so.
Why are you assigining two different QImages in two different ways for
qImage variable?
I'm surprised this hasn't given you a compiler error.

Srdjan



More information about the Qt-interest-old mailing list