Hi
I have an exisiting vector< pair<boost::date, double> > where the boost::date are the x axis values, and the double the y axis values.
I don't want to copy the existing data so I'm trying to point to it instead.
There seem to be 3 derived classes of QwtData, and the one I hoped to use was QwtCPointerData. However, the ctor expects pointers to contiguous double arrays and stores the pointers only, not the data itself which is good.
1. I wish to display the x axis labels as dates. Is the only way to use QwtTextLabel? boost::date can generate strings.
2. Is it advised in this case to write a derived class of QwtData that would read behind the scenes inside the vector?
regards,
Bookmarks