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

Était-ce utile?

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

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top