ChartDirector 7.1 (C++ Edition)

QChartViewer.setMouseWheelZoomRatio


Usage

void setMouseWheelZoomRatio(double ratio);

Description

Sets the magnification ratio for each mouse wheel event.

The magnification ratio is applied when the mouse wheel rolls towards the screen. The reciprocal of the ratio is applied when the mouse wheel rolls away from the screen. A ratio larger than 1 means to zoom in when the mouse wheel rolls towards the screen, and to zoom out when the mouse wheel rolls away from the screen. A ratio less than 1 means the opposite behaviour. A ratio equal to 1 disables mouse wheel zooming.

The mouse wheel causes zooming to occur, it will trigger the QChartViewer.viewPortChanged signal.

Arguments

ArgumentDefaultDescription
ratio(Mandatory)The magnification ratio.

Return Value

None