NOTE: This section describes Programmable Track Cursor for QT only. For MFC, please refer to Programmable Track Cursor (MFC).
ChartDirector 6.0 (C++ Edition)
Programmable Track Cursor (QT)
Introduction
MouseMovePlotArea Signal
Dynamic Layer
Snapping to the Nearest X Data Position
Sample Track Cursors
Sample Code | Description |
---|---|
Track Line with Legend (QT) | Demonstrates a track cursor that consists of a vertical line snapped to the nearest x data position. There are dots to highlight the nearest data points, and a dynamically updated legend showing their values. |
Track Line with Data Labels (QT) | Demonstrates a track cursor that consists of a vertical line snapped to the nearest x data position with a floating x-axis label. There are also dots to highlight the nearest data points, with labels beside them displaying their values. |
Track Line with Axis Labels (QT) | Demonstrates a track cursor that uses horizontal and vertical lines to connect the nearest data points to the x-axis and y-axis, with floating axis labels showing their values. |
Track Box with Floating Legend (QT) | Demonstrates a track cursor that consists of a rectangle enclosing the slot corresponding to the nearest x-axis label. A floating legend box that moves with the mouse cursor is used to display the data values in that slot. |
Crosshair with Axis Labels (QT) | Demonstrates a track cursor that consists of a vertical line and a horizontal line at the mouse cursor position, thereby forming a crosshair. Floating axis labels are used to display the cursor position. |
Finance Chart Track Line (QT) | This is similar to Track Line with Legend (QT), but is modified to apply to the FinanceChart object. |
Zooming and Scrolling with Track Line (1) (QT) | Demonstrates how to apply track cursors to a Zoomable and Scrollable chart. The track cursor drawing code is similar to that in Track Line with Legend (QT). |
Zooming and Scrolling with Track Line (2) (QT) | Demonstrates how to apply track cursors to a Zoomable and Scrollable chart. The track cursor drawing code is similar to that in Track Line with Data Labels (QT). |
Zooming and Scrolling with Viewport Control (QT) | Demonstrates how to apply track cursors to a Zoomable and Scrollable chart. The track cursor drawing code is similar to that in Track Line with Legend (QT). |
XY Zooming and Scrolling (QT) | Demonstrates how to apply track cursors to a Zoomable and Scrollable chart. The track cursor drawing code is similar to that in Crosshair with Axis Labels (QT). |
Realtime Chart with Track Line (QT) | Demonstrates how to apply track cursors to a Realtime chart. The track cursor drawing code is similar to that in Track Line with Legend (QT). |
Realtime Chart with Zooming and Scrolling (QT) | Demonstrates how to apply track cursors to a Realtime chart. The track cursor drawing code is similar to that in Track Line with Data Labels (QT). |