I wrote code for this stuff, based on the provided Qwt examples.
For the time/date axis, the following simple class was used (it assumes the time is stored in the time_t form):
Qt Code:
{ public: { return t.toString(format); } private: const QString format; }To copy to clipboard, switch view to plain text mode
The attached program contains a plot item to draw candlesticks based on OHLC data. This example generates random data each second, aggregating and creating bars every 10 seconds. Another feature that might be useful is the ability to adjust the scale by clicking and dragging the axes.
Hopefully some of this will be helpful to others.
Bookmarks