[Qt-interest] QPainter segmentation fault on Linux
Srdjan Todorovic
todorovic.s at googlemail.com
Fri Feb 20 11:54:53 CET 2009
Hi,
2009/2/20 Davide <davide83 at gmail.com>:
> Unfortunately my problems on a Linux system still remain.
> Does anybody have an idea of what can cause a Segmentation Fault error
> when I call drawRect method only on a Linux system and not in Windows?
It might be a bug. Or it might be something odd you are doing.
I'd have expected you to have run a debugger by now.
Have you found anything of note with a debugger?
> This is my code:
> qImage = new QImage((u8*)Image.data, Image.width, Image.height,
> QImage::Format_RGB32);
> QPainter p;
> p.begin(qImage);
> p.setPen((Qt::GlobalColor)(Qt::cyan));
> p.drawRect(2, 2, 20, 20); // --> Segmentation Fault
> p.end();
Srdjan
More information about the Qt-interest-old
mailing list