##// END OF EJS Templates
modelData example docs updated
Marek Rosa -
r1405:c822a33e6194
parent child
Show More
@@ -23,7 +23,7
23
23
24 \snippet ../examples/modeldata/tablewidget.cpp 3
24 \snippet ../examples/modeldata/tablewidget.cpp 3
25
25
26 First line of the code below creates new line series. Line number two creates an instance of QVXYModelMapper class.
26 The code below creates new line series and gives it a name. Following line creates an instance of QVXYModelMapper class.
27 Next two lines specifie that x coordinates are taken from the model's column(Qt::Vertical) with index 0 and the y coordinates are taken from the model's column with index 1.
27 Next two lines specifie that x coordinates are taken from the model's column(Qt::Vertical) with index 0 and the y coordinates are taken from the model's column with index 1.
28 To create a connection between the series and the model we set both of those objects to QVXYModelMapper.
28 To create a connection between the series and the model we set both of those objects to QVXYModelMapper.
29
29
@@ -32,7 +32,7
32 \snippet ../examples/modeldata/tablewidget.cpp 4
32 \snippet ../examples/modeldata/tablewidget.cpp 4
33
33
34 To show in QTableView which data coresponds with which series this example uses table coloring.
34 To show in QTableView which data coresponds with which series this example uses table coloring.
35 When series is added to the chart it is assigned a color beased on the currently selected theme.
35 When series is added to the chart it is assigned a color based on the currently selected theme.
36 Code below extracts that color from the series and uses it to create colored QTableView.
36 Code below extracts that color from the series and uses it to create colored QTableView.
37 Coloring of the view is not a part of the QChart functionality.
37 Coloring of the view is not a part of the QChart functionality.
38
38
General Comments 0
You need to be logged in to leave comments. Login now