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.

ConstantValueDescription
QChartView::NoRubberBand0x0No zooming area is specified, and therefore zooming is not enabled.
QChartView::VerticalRubberBand0x1The rubber band is locked to the size of the chart horizontally and can be pulled vertically to specify the zooming area.
QChartView::HorizontalRubberBand0x2The rubber band is locked to the size of the chart vertically and can be pulled horizontally to specify the zooming area.
QChartView::RectangleRubberBand0x3The rubber band is fixed to the point that was clicked and can be pulled both vertically and horizontally.