Dear visitor, welcome to QtForum.org.
If this is your first visit here, please read the Help. It explains in detail how this page works.
To use all features of this page, you should consider registering.
Please use the registration form, to register here or read more information about the registration process.
If you are already registered, please login here.
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!
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");
|