@@ -0,0 +1,8 | |||||
|
1 | /*! | |||
|
2 | \example demos/audio | |||
|
3 | \title Audio demo | |||
|
4 | \subtitle | |||
|
5 | ||||
|
6 | This demos shows drawing of the dynamic data (microphon input) | |||
|
7 | \image demos_audio.png | |||
|
8 | */ |
@@ -0,0 +1,12 | |||||
|
1 | /*! | |||
|
2 | \example demos/callout | |||
|
3 | \title Callout demo | |||
|
4 | \subtitle | |||
|
5 | ||||
|
6 | This demo shows how to draw an additional element (a callout) on top of the chart. | |||
|
7 | \image demos_callout.png | |||
|
8 | ||||
|
9 | QChart class provides two methods that map between the scene coordinates and the series' domain (defines by the axes ranges). | |||
|
10 | QPointF QChart::mapToPosition(const QPointF &value, QAbstractSeries *series) | |||
|
11 | QPointF QChart::mapToValue(const QPointF &position, QAbstractSeries *series) | |||
|
12 | */ |
1 | NO CONTENT: file renamed from examples/callout/callout.cpp to demos/callout/callout.cpp |
|
NO CONTENT: file renamed from examples/callout/callout.cpp to demos/callout/callout.cpp |
1 | NO CONTENT: file renamed from examples/callout/callout.h to demos/callout/callout.h |
|
NO CONTENT: file renamed from examples/callout/callout.h to demos/callout/callout.h |
@@ -1,4 +1,4 | |||||
1 |
!include( ../ |
|
1 | !include( ../demos.pri ) { | |
2 | error( "Couldn't find the examples.pri file!" ) |
|
2 | error( "Couldn't find the examples.pri file!" ) | |
3 | } |
|
3 | } | |
4 |
|
4 |
1 | NO CONTENT: file renamed from examples/callout/main.cpp to demos/callout/main.cpp |
|
NO CONTENT: file renamed from examples/callout/main.cpp to demos/callout/main.cpp |
@@ -89,6 +89,8 void View::resizeEvent(QResizeEvent *event) | |||||
89 | m_chart->resize(event->size()); |
|
89 | m_chart->resize(event->size()); | |
90 | m_coordX->setPos(m_chart->size().width()/2 - 50, m_chart->size().height() - 20); |
|
90 | m_coordX->setPos(m_chart->size().width()/2 - 50, m_chart->size().height() - 20); | |
91 | m_coordY->setPos(m_chart->size().width()/2 + 50, m_chart->size().height() - 20); |
|
91 | m_coordY->setPos(m_chart->size().width()/2 + 50, m_chart->size().height() - 20); | |
|
92 | // for (int i = 0; i < children().count(); i++) | |||
|
93 | // if () | |||
92 | } |
|
94 | } | |
93 | QGraphicsView::resizeEvent(event); |
|
95 | QGraphicsView::resizeEvent(event); | |
94 | } |
|
96 | } |
1 | NO CONTENT: file renamed from examples/callout/view.h to demos/callout/view.h |
|
NO CONTENT: file renamed from examples/callout/view.h to demos/callout/view.h |
@@ -14,7 +14,8 SUBDIRS += piechartcustomization \ | |||||
14 | qmlcustommodel \ |
|
14 | qmlcustommodel \ | |
15 | chartinteractions \ |
|
15 | chartinteractions \ | |
16 | qmlaxes \ |
|
16 | qmlaxes \ | |
17 | qmlcustomlegend |
|
17 | qmlcustomlegend \ | |
|
18 | callout | |||
18 |
|
19 | |||
19 | contains(QT_CONFIG, opengl) { |
|
20 | contains(QT_CONFIG, opengl) { | |
20 | SUBDIRS += chartthemes \ |
|
21 | SUBDIRS += chartthemes \ |
1 | NO CONTENT: file renamed from doc/images/examples_callout.png to doc/images/demos_callout.png |
|
NO CONTENT: file renamed from doc/images/examples_callout.png to doc/images/demos_callout.png |
@@ -59,6 +59,14 | |||||
59 | <td><a href="demos-qmlweather.html"><img src="images/demos_qmlweather.png" width="300" alt="Qml Weather" /></a></td> |
|
59 | <td><a href="demos-qmlweather.html"><img src="images/demos_qmlweather.png" width="300" alt="Qml Weather" /></a></td> | |
60 | <td><a href="demos-qmlcustomlegend.html"><img src="images/demos-qmlcustomlegend1.png" width="300" alt="Qml Custom Legend" /></a></td> |
|
60 | <td><a href="demos-qmlcustomlegend.html"><img src="images/demos-qmlcustomlegend1.png" width="300" alt="Qml Custom Legend" /></a></td> | |
61 | </tr> |
|
61 | </tr> | |
|
62 | <tr> | |||
|
63 | <td><a href="demos-callout.html">Callout</a></td> | |||
|
64 | <td><a href="demos-audio.html">Audio</a></td> | |||
|
65 | </tr> | |||
|
66 | <tr> | |||
|
67 | <td><a href="demos-callout.html"><img src="images/demos_callout.png" width="300" alt="Callout" /></a></td> | |||
|
68 | <td><a href="demos-audio.html"><img src="images/demos_audio.png" width="300" alt="Audio" /></a></td> | |||
|
69 | </tr> | |||
62 |
|
70 | |||
63 | </table> |
|
71 | </table> | |
64 | </div> |
|
72 | </div> |
General Comments 0
You need to be logged in to leave comments.
Login now