I need a QwtThermo with a scale with higher resolution. By higher resolution I mean I need more number of minor ticks on the scale. I couldn't find a way to achieve it with the current api. So i subclassed QwtThermo(QwtThermoSubclass) and used QAbstractScale::setScaleEngine() to set a scaleEngine of my own.(NewScaleEngine)
In the NewScaleEngine I basically give the ticksList. I have two variable majorDivision, minorDivisions, and use them to give the tick list.
For the values of majorDivision and minorDivision in constructor of NewScaleEngine, it works alright. When i try to change the variables in the runtime and call the QWidget::update, the scale is not redrawn.
Am i using a wrong method?
Added after 35 minutes:
QAbstractScale::rescale is the answer.
Bookmarks