PDA

View Full Version : How to attach png files to qwtplot



alperyazir66
4th March 2014, 11:52
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.

Uwe
4th March 2014, 12:02
How do you want to use your png files: somehow related to plot coordinates - or a label somewhere in a corner / like a watermark ) independent from the current ranges of the axis scales ?

Uwe

alperyazir66
26th March 2014, 11:38
QPixmap pixmap(":image");

QwtSymbol *symbol = new QwtSymbol;
symbol->setPixmap(pixmap);

QwtPlotMarker *marker = new QwtPlotMarker;
marker->setSymbol( symbol);
marker->attach(this);



this method works for attaching files(.png, jpeg ...)