Hello all,
I faced with a problem that using QwtPlotCurve::LegendShowSymbol doesn't show a symbol (a circle in my case) in a legend entirely:
legend1.png
Here is an example code:
Qt Code:
{ public: private: QwtPlotCurve _curve; }; { sym->setSize(5); _curve.setSymbol(sym); _curve.setTitle(tr ("Curve")); _curve.attach(this); QVector <double> x; for (unsigned i = 0; i < 10; ++i) { x.push_back(i); } _curve.setSamples(x, x); }To copy to clipboard, switch view to plain text mode
If I change a symbol size from 5 to 10 everything looks nice:
legend2.png
Does anybody know why this can happen?
Thanks for any help!
Bookmarks