QwtLegend* legend = new QwtLegend( plot ); //QwtPlot* plot...plot->insertLegend( legend, QwtPlot::BottomLegend );
C++ (Qt)QwtText text("E=m*c^2",QwtText::TeXText);
C++ (Qt) QwtText QwtAbstractScaleDraw::label(double a) const { QString str; str.setNum(a); return str.left(str.indexOf(".")+2);}//
class ScaleDraw : public QwtScaleDraw{public: ScaleDraw() : QwtScaleDraw() {} ~ScaleDraw() {} QwtText label( double value ) const { return QString( "%1" ).arg( value, 0, 'f', 2 ); }};