ChartDirector 6.0 (C++ Edition)

QChartViewer.removeDynamicLayer


Usage

void removeDynamicLayer(const char *eventId);

Description

Calls BaseChart.removeDynamicLayer when the specified event occurs.

The dynamic layer (see BaseChart.initDynamicLayer) is commonly used for drawing track cursors. For these type of usages, it is often necessary to clear the dynamic layer when the mouse cursor leaves the plot area. The removeDynamicLayer method can be used in the dynamic layer drawing code to automatically clear the dynamic layer when the specified event occurs. This avoids the need to set up a separate event handler to call BaseChart.removeDynamicLayer.

In the current version of ChartDirector, this method only supports the eventId "MouseLeaveChart" and "MouseLeavePlotArea".

This method only applies to the first occurrence of the specified event after calling this method. If this method is called multiple times before the event occurs, only the last call has effect. To cancel this method, use an empty string as the eventId.

Arguments

ArgumentDefaultDescription
eventId(Mandatory)The event that causes BaseChart.removeDynamicLayer to be called.

Return Value

None