##// END OF EJS Templates
Minor fix to README
Minor fix to README

File last commit:

r2034:40ab6eb6f3e9
r2441:af1293ebd0a1 RC1_1.2.1
Show More
examples-legend.qdoc
33 lines | 1.7 KiB | text/plain | TextLexer
/ doc / src / examples-legend.qdoc
sauimone
legend example to documentation. minor legend fixes
r1300 /*!
\example examples/legend
\title Legend Example
\subtitle
This example shows how to detach legend from chart and how to attach it back. By default the chart
sauimone
fixed typo in doc
r1448 draws the legend inside same view with the chart. In some cases user may want to draw legend to somewhere else. To make this possible the legend can be detached from the chart. Detaching means that chart doesn't draw the legend or try to change it's layout. Detached legend can then be drawn where user wants, for example in different graphics scene. The behaviour of legend can be inspected by running the legend example.
sauimone
updated legend documentation
r1447 In example we use barseries where we add or remove barsets. The legend reflects the changes in series. Legend can be detached or attached back to chart and its alignment can be modified.
When legend is detached, it can be resized and positioned freely.
Tero Ahola
Documentation: QML demos, bar screens, legend detach screen
r1380
Tero Ahola
Fixed a bug with legend attach requiring a screen resize to update UI
r2034 \table
\row
\o \inlineimage examples_legend_detach.png
\o \inlineimage examples_legend_detach2.png
\endtable
Tero Ahola
Documentation: QML demos, bar screens, legend detach screen
r1380
sauimone
updated legend documentation
r1447 Here we turn legend visible and set its alignment to the bottom of the chart.
sauimone
legend example to documentation. minor legend fixes
r1300
\snippet ../examples/legend/mainwidget.cpp 1
sauimone
updated legend documentation
r1447 This snippet shows how to detach the legend from chart. After detaching, we turn its background to visible and set a different color to it. This makes it easier to see, how the items inside legend are arranged
in detached mode.
sauimone
legend example to documentation. minor legend fixes
r1300 \snippet ../examples/legend/mainwidget.cpp 2
sauimone
updated legend documentation
r1447 Here we attach legend back to chart. The background is turned invisible.
sauimone
legend example to documentation. minor legend fixes
r1300 \snippet ../examples/legend/mainwidget.cpp 3
sauimone
updated legend documentation
r1447 This shows how we set the detached legend dimensions. After setting new values, we call update to show changes on screen.
sauimone
legend example to documentation. minor legend fixes
r1300 \snippet ../examples/legend/mainwidget.cpp 4
*/