I think my question relates to Qt in general, and not to QCustomPlot in particular. But I think there are people at this forum who know the answer to this question, and this answer is useful to other people.
In the example of "text-document-integration" from the QCustomPlot-2.0.0 archive, saving QCustomPlot to PDF with two graphs is connected like this:
works good, and the resulting PDF file contains a texture.
When I try to make saving in SVG:
// QT += svg QSvgGenerator svggenerator; svggenerator.setFileName("vectorPicture.svg"); QCPPainter qcpPainter; qcpPainter.begin(&svggenerator); plot->toPainter(&qcpPainter, width, height); qcpPainter.end();
all turns out well, but the texture in svg is not contained.
Am I doing something wrong? or is it impossible to save the texture in SVG?