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",QwtTex t::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