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 sideAccording 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 yourselfCodePudding user response:
According to the mouse point to build a to that point as the center of the rectangle to zoomIn functionCodePudding user response:
Rewrite the mouse eventsCodePudding user response:
Suggest using qcustomplot, set properties can support mouse zoom, is very nice!