@@ -28,12 +28,13 | |||||
28 |
|
28 | |||
29 | The oscilloscope application demonstrates how to use the Qt Charts QML API to implement an |
|
29 | The oscilloscope application demonstrates how to use the Qt Charts QML API to implement an | |
30 | application with strict performance requirements. The application uses generated data with |
|
30 | application with strict performance requirements. The application uses generated data with | |
31 |
configurable characteristics to mimic a simple oscilloscope user interface. |
|
31 | configurable characteristics to mimic a simple oscilloscope user interface. | |
32 | actual screen refresh performance of the application, you can set QML_SHOW_FRAMERATE = 1 to |
|
32 | ||
33 | your run environment settings to get the framerate shown in the application output console. |
|
33 | To get information about actual rendering speed shown in the application output console, you can | |
34 | To do so go to Projects - Run - Run environment in Qt Creator and select Add. Then you can |
|
34 | set QSG_RENDER_TIMING = 1 to your run environment settings. To do so go to Projects - Run - | |
35 | experiment with the different configurable options of the example application to find the |
|
35 | Run environment in Qt Creator and select Add. Then you can experiment with the different | |
36 | configuration that gives you the best performance in your environment. |
|
36 | configurable options of the example application to find the configuration that gives you the | |
|
37 | best performance in your environment. | |||
37 |
|
38 | |||
38 | The application window is shared by control and scope views: |
|
39 | The application window is shared by control and scope views: | |
39 | \snippet qmloscilloscope/qml/qmloscilloscope/main.qml 1 |
|
40 | \snippet qmloscilloscope/qml/qmloscilloscope/main.qml 1 | |
@@ -53,7 +54,4 | |||||
53 | signal sources. This is implemented by dynamically destroying and creating series: |
|
54 | signal sources. This is implemented by dynamically destroying and creating series: | |
54 | \snippet qmloscilloscope/qml/qmloscilloscope/ScopeView.qml 3 |
|
55 | \snippet qmloscilloscope/qml/qmloscilloscope/ScopeView.qml 3 | |
55 |
|
56 | |||
56 | \note QML_SHOW_FRAMERATE environment variable doesn't work with Qt Quick 2. |
|
|||
57 | From Qt 5.1.0 on, the QSG_RENDER_TIMING environment variable can be used |
|
|||
58 | similarly to display rendering time. |
|
|||
59 | */ |
|
57 | */ |
General Comments 0
You need to be logged in to leave comments.
Login now