23 Apr 22:33
still no luck print/saving pdfs of qwtPlotMarkers
From: Peter Leopold <Peter.Leopold <at> BioAnalyte.com>
Subject: still no luck print/saving pdfs of qwtPlotMarkers
Newsgroups: gmane.comp.graphics.qwt.general
Date: 2008-04-23 20:34:24 GMT
Subject: still no luck print/saving pdfs of qwtPlotMarkers
Newsgroups: gmane.comp.graphics.qwt.general
Date: 2008-04-23 20:34:24 GMT
Has anyone had success labeling QwtPlots with QwtPlotMarkers, then exporting the
plots to pdf or a printer?
If so, do you create std::vector<QwtPlotMarker> to hold the markers?
QList<QwtPlotMarker>? Dynamically allocated arrays, viz.,
QwtPlotMarker *markerArray = 0;
try{markerArray = new QwtPlotMarker [numberToBeUsed];}
catch(...){return MEMORY_ALLOCATION_ERROR;}
I'll expect that whatever you do, your collection of QwtPlotMarkers is a class
attribute, since anything else would be crazy.
Uwe suggested that I try to compile the entire source of Qwt into my own app. I
will try this in the next few days, but since my compilation environment
(basically just qmake -project ; qmake ; make) is not compatible with the
elegant, non-local architecture of the qwt project files, and I would (and
could) break a lot to make it work. Indeed, getting qwt to compile outside its
tidy architecture will be a do-able, but nontrivial, project.
However, since the QwtPlotMarkers appear on the screen AOK, the problem is not
likely to be in QwtPlotMarker class, but the pdf class. Or in my own code, but
my code passes valgrind review for memory management, etc., so there is probably
a subtle problem with passing contents to the print engine. Surely someone else
has seen this.
As the project I'm working on is ready to go out the door, I've written release
notes to the effect that QwtPlotMarkers don't print. Alas, the markers are a big
part of the value of the project, so I'm as motivated as ever to solve this.
(Continue reading)
RSS Feed