Question

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

Was it helpful?

Solution

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).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top