setAxisTitle
(QwtPlot::xBottom, name
);
axisTitle
(QwtPlot::xBottom).
setRenderFlags(Qt
::AlignRight);
setAxisTitle(QwtPlot::xBottom, name);
axisTitle(QwtPlot::xBottom).setRenderFlags(Qt::AlignRight);
axisTitle(QwtPlot::xBottom).setText("name2",QwtText::RichText);
To copy to clipboard, switch view to plain text mode
Of course this doesn't work - this code is manipulating the return value of a function. Instead you have to write it this way:
text.setRenderFlags(Qt::AlignRight);
setAxisTitle(xBottom, text );
QwtText text( "name2", QwtText::RichText );
text.setRenderFlags(Qt::AlignRight);
setAxisTitle(xBottom, text );
To copy to clipboard, switch view to plain text mode
Uwe
Bookmarks