PDA

View Full Version : Drawing icon on QwtPlot



gorec323
23rd December 2015, 13:19
Hi,
I'm facing a problem. I want to draw some pictures(32x32) on the QwtPlot. Is it possible it has something to do means the Qwt library?

Thanks by advance.

Uwe
23rd December 2015, 15:11
If it is related to plot coordinates you could use a marker ( with a symbol ). If not you might have to implement a trivial custom plot item that would consist of some layout code around QPainter::drawPixmap().

Uwe

gorec323
24th December 2015, 11:52
If it is related to plot coordinates you could use a marker ( with a symbol ). If not you might have to implement a trivial custom plot item that would consist of some layout code around QPainter::drawPixmap().

Uwe

Thank you very much.

code_err
24th December 2015, 14:26
Or You can put QLabel on plot, I've done this with QPushButtons. You can inherit class from QwtPlot and add your own Widgets to it. you treat QwtPlot like a normal QWidget and set widgets as its children.