I am using the setAxisScaleDraw class to print the X Axis date in text. However, I would like to change the value of this text based on the current scale of the plot. If the curve data contains less than a few days worth of data, then I would want to use the
virtual QwtText label( double value ) const
{
QDateTime ThisDate;
ThisDate = QDateTime::fromTime_t(value);
return ThisDate.toString("MMM d yy h:m");
}
Else, if the curve data contains more than a few days worth of data I would use
virtual QwtText label( double value ) const
{
QDateTime ThisDate;
ThisDate = QDateTime::fromTime_t(value);
return ThisDate.toString("MMM d yy");
}

Whats the best way to accomplish this.
Do I add a different QwtScaleDraw that would return the correct version?

But I am also using a zoomer which means that I may want to automatically switch when I zoom in. I know I am missing something in the docs, but I can't figure it out.