[Qt-interest] Segmentation fault in QPixmap::fromImage()

Cole, Derek dcole at integrity-apps.com
Fri Apr 1 00:36:46 CEST 2011


Hello, I am getting a segmentation fault at the last line of this snippet.


     QImage qi(lutData, imwidth,imheight, QImage::Format_Indexed8);

/*...some code to call qi.setColor() to populate the LUT..*/

    QPixmap p(QPixmap::fromImage(qi,Qt::AutoColor));

What could be the cause of this? My program just simply "unexpectedly finishes" and the debugger shows it down in the QPixmap lib somewhere..but I cant see it obviously

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110331/f9ce2bc6/attachment.html 


More information about the Qt-interest-old mailing list