@@ -17,8 +17,7 SUBDIRS += piechartcustomization \ | |||
|
17 | 17 | |
|
18 | 18 | contains(QT_CONFIG, opengl) { |
|
19 | 19 | SUBDIRS += chartthemes \ |
|
20 |
qmloscilloscope |
|
|
21 | chartviewer | |
|
20 | qmloscilloscope | |
|
22 | 21 | } else { |
|
23 | 22 | message("OpenGL not available. Some demos are disabled") |
|
24 | 23 | } |
@@ -22,7 +22,7 | |||
|
22 | 22 | |
|
23 | 23 | Becasue we use QLineSeries calling createDefaultAxes will create QValueAxis both as X and Y axis. To use QDateTimeAxis we need to set it manually to the chart. |
|
24 | 24 | First the instance of QDateTimeAxis is created, then the number of ticks that are to be shown is set. The number of sun spots is provided as an average for the month therfore we don't need the axis labels to contain the information about the time and the day. This is achived by setting a custom label format. |
|
25 | Please refer to QDateTime::toString() method documntation to learn about the avaiable format options. | |
|
25 | Please refer to QDateTime::toString() method documentation to learn about the avaiable format options. | |
|
26 | 26 | |
|
27 | 27 | \snippet ../examples/datetimeaxis/main.cpp 4 |
|
28 | 28 |
General Comments 0
You need to be logged in to leave comments.
Login now