Originally Posted by
Uwe
See QwtAbstractScaleDraw::enableComponent().
Uwe
Thanks, it works!
Here is my code:
void Plot::removeTickLabels(bool isRemove)
{
if(isRemove) {
// m_grid->setFont(QFont("Arial", 1));
} else {
// m_grid->setFont(QFont());
}
this->replot();
}
void Plot::removeTickLabels(bool isRemove)
{
if(isRemove) {
// m_grid->setFont(QFont("Arial", 1));
m_grid->azimuthScaleDraw()->enableComponent(QwtAbstractScaleDraw::Labels, false);
m_grid->scaleDraw(QwtPolar::AxisRight)->enableComponent(QwtAbstractScaleDraw::Labels, false);
} else {
// m_grid->setFont(QFont());
m_grid->azimuthScaleDraw()->enableComponent(QwtAbstractScaleDraw::Labels, true);
m_grid->scaleDraw(QwtPolar::AxisRight)->enableComponent(QwtAbstractScaleDraw::Labels, true);
}
this->replot();
}
To copy to clipboard, switch view to plain text mode
Bookmarks