Home > Mobile >  Qt chart controls, after using insensitive function, how to restore to the original state?
Qt chart controls, after using insensitive function, how to restore to the original state?

Time:11-25


I use Qcharts drew a waveform diagram, axes, a waveform is very good,
Then use the mouse or keyboard event event of the up and down or so can drag waveform diagram, function is used in chart () - & gt; Scroll (x, y), this also is very normal,
I also used the zoom () function of the mouse wheel to zoom in on waveform, there can be a zoomreset () to restore the default, this very convenient also,

Operation after a few times, I want to restore the default coordinate position, but the position of the scroll after there is no way to recover,,, no reset - scroll such member function,,,, do how?

CodePudding user response:

It can only achieve a it himself.

CodePudding user response:

Please step in to help more ah, how to write?

CodePudding user response:

The original poster to solve? To ask!

CodePudding user response:

No one ignore,,,,,,,
I tried to use a variable to store all the mobile data, but the recovery time is wrong, because the scroll is a floating point number, add and subtract, floating point precision will be lost, unable to restore to the original value,
  •  Tags:  
  • Qt
  • Related