Pregunta

Is it possible to use png files in QwtPlot? Normally i can use svg files in my plots with QwtPlotSvgitem class but i could not succeed with these png files. Please give me a clue about that.

Regards

¿Fue útil?

Solución

Probably there are several ways to do this. You don't specify what kind of image you want to draw (and where).

You might create a QwtPlotMarker (Qwt docs) with a custom QwtSymbol (Qwt docs). You can try QwtSymbol::setPixmap(). A QPixmap can be created by calling its constructor with the file name of the *.png image (Qt docs).

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top