QGLWidget glw; QPainter painter(&glw); painter.setRenderHint(QPainter::Antialiasing, true); painter.setPen(QColor(0x77EEFF)); painter.drawPolyline(polygon); // Собственно все тормоза в этих двух painter.setPen(Qt::magenta); painter.drawPolyline(polymax); // вызовах drawPolyline *img = glw.grabFrameBuffer(); // копируем буфер изображения в QImage
Program received signal SIGSEGV, Segmentation fault.0x0040140f in renderImage (img=0x22fef8, ptr=0x22f6f4, ptm=0x22eef4, len=2147483647) at main.cpp:1616 else ptm[i] -= (ptm[i] - ptr[i]) / 25;(gdb) p i$1 = 2182(gdb) p &ptm[i]$3 = (quint16 *) 0x230000