kpr
22nd February 2011, 15:19
I've got a function like this:
void PlotWindow::setXAxisTitle (QString & name)
{
setAxisTitle(QwtPlot::xBottom, name);
axisTitle(QwtPlot::xBottom).setRenderFlags(Qt::Ali gnRight);
axisTitle(QwtPlot::xBottom).setText("name2",QwtText::RichText);
}
The first line works and puts (center aligned) name "name" to X axis. But the following lines, used for put title right aligned an change title text don't work! i don't understand why, any help?
Thanks
void PlotWindow::setXAxisTitle (QString & name)
{
setAxisTitle(QwtPlot::xBottom, name);
axisTitle(QwtPlot::xBottom).setRenderFlags(Qt::Ali gnRight);
axisTitle(QwtPlot::xBottom).setText("name2",QwtText::RichText);
}
The first line works and puts (center aligned) name "name" to X axis. But the following lines, used for put title right aligned an change title text don't work! i don't understand why, any help?
Thanks