Home > Mobile >  QChart waveform zoom in
QChart waveform zoom in

Time:10-07

I have an application, the design of QT interface display real-time acquisition of waveform, now have the waveform, but wants to observe the waveform need to zoom in on the details of the function, I see Qchart
in there.ZoomIn and zoomOut this function, but this is only amplified as a whole, not according to the location of the mouse point zoom in, hope god give to give directions, thank you very much

CodePudding user response:

Used QChart, but with other,
This figure can set x range?
Mouse selected area after the release, resetting the x axis range for mouse chosen x0, x1

CodePudding user response:

Is can set the range of X Y, Qt QChart should be introduced soon module, if the frame rectangle of amplification should be chosen, but the demand is on my side
According to the mouse wheel zoom in, but still very thank you

CodePudding user response:

I tried scaling function of x, only oneself write a MouseArea, processing time of roller, enlarged or reduced to geometric Chat x coordinate axisX min and Max, can achieve the effect,
http://blog.csdn.net/w54a3teg64c7bd/article/details/56843573
Want to help

CodePudding user response:

GrabGesture (Qt: : TapGesture);

Trigger Settings click position and scaling of the location of the curve

CodePudding user response:

You only have to add a place that can drag is ok, after you zoom in, then just move yourself

CodePudding user response:

According to the mouse point to build a to that point as the center of the rectangle to zoomIn function

CodePudding user response:

Rewrite the mouse events

CodePudding user response:

Suggest using qcustomplot, set properties can support mouse zoom, is very nice!
  •  Tags:  
  • Qt
  • Related