##// 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:

r1391:de088eac0b44
r2443:5b27b7b1d72a RC2_1.2.1
Show More
demos-qmlf1legends.qdoc
20 lines | 782 B | text/plain | TextLexer
/ doc / src / demos-qmlf1legends.qdoc
Tero Ahola
Documentation for Qml F1 Legends demo
r1391 /*!
\example demos/qmlf1legends
\title Qml F1 Legends
\subtitle
\image demos_qmlf1legends.png
This application demonstrates using XmlListModel as a datasource for a Chart.
Let's define an empty ChartView first:
\snippet ../demos/qmlf1legends/qml/qmlf1legends/main.qml 1
Our XmlListModel uses hard-coded test data. In a real application the data source would be a timing system.
\snippet ../demos/qmlf1legends/qml/qmlf1legends/SpeedsXml.qml 1
\snippet ../demos/qmlf1legends/qml/qmlf1legends/SpeedsXml.qml 2
\snippet ../demos/qmlf1legends/qml/qmlf1legends/main.qml 2
The data is parsed with a timer. The line series representing each driver are created on the fly.
\snippet ../demos/qmlf1legends/qml/qmlf1legends/main.qml 3
*/