You are not logged in.

1

Wednesday, March 9th 2005, 3:17pm

HOWTO save a Qwt Curve into a Pic

Hi, ALL

I'm using Qwt nowadays, it's really nice. But howto save the 2D curve created by Qwt insertCurve method ?

Thx for any advice!

2

Wednesday, March 9th 2005, 3:28pm

RE: HOWTO save a Qwt Curve into a Pic

I've solved this problem, Qwt inherits QFrame, so just code:

Source code

1
2
QPixmap pixmap = QPixmap::grabWidget(PlotWidget);
	pixmap.save(saveasFile, "PNG");