##// END OF EJS Templates
Fix vanishing labels for first and last ticks....
Fix vanishing labels for first and last ticks. Extra space must be reserved by layout for the axes that have wide labels for first or last tick. Changed the logic how axis sizeHint is interpreted to make the previously irrelevant height or width (depending on orientation) of the sizeHint to indicate how far the widest label extends past the first/last tick, and adjust the grid size accordingly in layout. Reviewed-by: Mika Salmela

File last commit:

r2393:150f5f56819e
r2443:5b27b7b1d72a RC2_1.2.1
Show More
demos-callout.qdoc
14 lines | 492 B | text/plain | TextLexer
/ doc / src / demos-callout.qdoc
/*!
\example demos/callout
\title Callout demo
\subtitle
This demo shows how to draw an additional element (a callout) on top of the chart.
\image demos_callout.png
QChart class provides two methods that map between the scene coordinates and the series' domain (defined by the axes ranges).
QPointF QChart::mapToPosition(const QPointF &value, QAbstractSeries *series)
QPointF QChart::mapToValue(const QPointF &position, QAbstractSeries *series)
*/