Hello,
I'm writing a program that acts this way:
- I have a principal QWidget over which I create a QPainter,
- I draw on the widget,
- I pass the Painter to other widgets so I can use those widgets to draw on the principal one,
- Finally,in the principal widget,I call end() on the painter.

The program works properly but ends with a segmentation fault. I runned gdb and it sais that the problem was that it doesn't found qlist.h (quite strange I think).

However the output has no apparent problem:I can display the result of my painting on video and I can eventually draw it on a file. The problem arises when I try to convert the .ps image created with my program to a .pdf,in fact I obtain this error using dvipdf ( in fact I use the .ps file I create as an image in a latex text):

/usr/bin/dvipdf: line 40: 20896 Broken pipe exec dvips -q -f "$infile"
20897 Segmentation fault | gs $OPTIONS -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile="$outfile" $OPTIONS -c .setpdfwrite -

I'm sure it's not a problem of the latex file or of my dvipdf because if I do the same things but without passing the QPainter to other widgets,I have no problem.

What can I do?

thanks!