QChartView Class
The QChartView is a standalone widget that can display charts. More...
| Header: | #include <QChartView> |
| Inherits: | QGraphicsView |
Public Types
| enum | RubberBand { NoRubberBand, VerticalRubberBand, HorizontalRubberBand, RectangleRubberBand } |
Detailed Description
A chart view does not require a QGraphicsScene object to work. To display a chart in an existing QGraphicsScene, the QChart or QPolarChart class should be used instead.
See also QChart and QPolarChart.
Member Type Documentation
enum QChartView::RubberBand
This enum describes the different types of rubber band effects that can be applied to the rectangular zooming area.
| Constant | Value | Description |
|---|---|---|
QChartView::NoRubberBand | 0x0 | No zooming area is specified, and therefore zooming is not enabled. |
QChartView::VerticalRubberBand | 0x1 | The rubber band is locked to the size of the chart horizontally and can be pulled vertically to specify the zooming area. |
QChartView::HorizontalRubberBand | 0x2 | The rubber band is locked to the size of the chart vertically and can be pulled horizontally to specify the zooming area. |
QChartView::RectangleRubberBand | 0x3 | The rubber band is fixed to the point that was clicked and can be pulled both vertically and horizontally. |