@@ -22,7 +22,7 | |||||
22 | import QtQuick 2.0 |
|
22 | import QtQuick 2.0 | |
23 | import QtCharts 2.0 |
|
23 | import QtCharts 2.0 | |
24 |
|
24 | |||
25 | Rectangle { |
|
25 | Item { | |
26 | anchors.fill: parent |
|
26 | anchors.fill: parent | |
27 |
|
27 | |||
28 | //![1] |
|
28 | //![1] |
@@ -22,7 +22,7 | |||||
22 | import QtQuick 2.0 |
|
22 | import QtQuick 2.0 | |
23 | import QtCharts 2.0 |
|
23 | import QtCharts 2.0 | |
24 |
|
24 | |||
25 | Rectangle { |
|
25 | Item { | |
26 | anchors.fill: parent |
|
26 | anchors.fill: parent | |
27 |
|
27 | |||
28 | //![1] |
|
28 | //![1] |
@@ -22,7 +22,7 | |||||
22 | import QtQuick 2.0 |
|
22 | import QtQuick 2.0 | |
23 | import QtCharts 2.0 |
|
23 | import QtCharts 2.0 | |
24 |
|
24 | |||
25 | Rectangle { |
|
25 | Item { | |
26 | anchors.fill: parent |
|
26 | anchors.fill: parent | |
27 |
|
27 | |||
28 | //![1] |
|
28 | //![1] |
@@ -21,7 +21,7 | |||||
21 |
|
21 | |||
22 | import QtQuick 2.0 |
|
22 | import QtQuick 2.0 | |
23 |
|
23 | |||
24 | Rectangle { |
|
24 | Item { | |
25 | width: 440 |
|
25 | width: 440 | |
26 | height: 330 |
|
26 | height: 330 | |
27 | property bool sourceLoaded: false |
|
27 | property bool sourceLoaded: false |
@@ -24,7 +24,7 import QtQuick 2.0 | |||||
24 | //![2] |
|
24 | //![2] | |
25 | import QtCharts 2.0 |
|
25 | import QtCharts 2.0 | |
26 |
|
26 | |||
27 | Rectangle { |
|
27 | Item { | |
28 | anchors.fill: parent |
|
28 | anchors.fill: parent | |
29 | property variant othersSlice: 0 |
|
29 | property variant othersSlice: 0 | |
30 |
|
30 |
@@ -22,7 +22,7 | |||||
22 | import QtQuick 2.0 |
|
22 | import QtQuick 2.0 | |
23 | import QtCharts 2.0 |
|
23 | import QtCharts 2.0 | |
24 |
|
24 | |||
25 | Rectangle { |
|
25 | Item { | |
26 | anchors.fill: parent |
|
26 | anchors.fill: parent | |
27 |
|
27 | |||
28 | //![1] |
|
28 | //![1] |
@@ -22,7 +22,7 | |||||
22 | import QtQuick 2.0 |
|
22 | import QtQuick 2.0 | |
23 | import QtCharts 2.0 |
|
23 | import QtCharts 2.0 | |
24 |
|
24 | |||
25 | Rectangle { |
|
25 | Item { | |
26 | anchors.fill: parent |
|
26 | anchors.fill: parent | |
27 |
|
27 | |||
28 | //![1] |
|
28 | //![1] |
@@ -22,7 +22,7 | |||||
22 | import QtQuick 2.0 |
|
22 | import QtQuick 2.0 | |
23 | import QtCharts 2.0 |
|
23 | import QtCharts 2.0 | |
24 |
|
24 | |||
25 | Rectangle { |
|
25 | Item { | |
26 | anchors.fill: parent |
|
26 | anchors.fill: parent | |
27 |
|
27 | |||
28 | //![1] |
|
28 | //![1] |
@@ -22,7 +22,7 | |||||
22 | import QtQuick 2.0 |
|
22 | import QtQuick 2.0 | |
23 | import QtCharts 2.0 |
|
23 | import QtCharts 2.0 | |
24 |
|
24 | |||
25 | Rectangle { |
|
25 | Item { | |
26 | anchors.fill: parent |
|
26 | anchors.fill: parent | |
27 |
|
27 | |||
28 | //![1] |
|
28 | //![1] |
@@ -22,7 +22,7 | |||||
22 | import QtQuick 2.0 |
|
22 | import QtQuick 2.0 | |
23 | import QtCharts 2.0 |
|
23 | import QtCharts 2.0 | |
24 |
|
24 | |||
25 | Rectangle { |
|
25 | Item { | |
26 | anchors.fill: parent |
|
26 | anchors.fill: parent | |
27 |
|
27 | |||
28 | //![1] |
|
28 | //![1] |
@@ -22,7 +22,7 | |||||
22 | import QtQuick 2.0 |
|
22 | import QtQuick 2.0 | |
23 | import QtCharts 2.0 |
|
23 | import QtCharts 2.0 | |
24 |
|
24 | |||
25 | Rectangle { |
|
25 | Item { | |
26 | anchors.fill: parent |
|
26 | anchors.fill: parent | |
27 |
|
27 | |||
28 | //![1] |
|
28 | //![1] |
@@ -22,7 +22,7 | |||||
22 | import QtQuick 2.0 |
|
22 | import QtQuick 2.0 | |
23 | import QtCharts 2.0 |
|
23 | import QtCharts 2.0 | |
24 |
|
24 | |||
25 | Rectangle { |
|
25 | Item { | |
26 | anchors.fill: parent |
|
26 | anchors.fill: parent | |
27 |
|
27 | |||
28 | //![1] |
|
28 | //![1] |
@@ -22,7 +22,7 | |||||
22 | import QtQuick 2.0 |
|
22 | import QtQuick 2.0 | |
23 | import QtCharts 2.0 |
|
23 | import QtCharts 2.0 | |
24 |
|
24 | |||
25 | Rectangle { |
|
25 | Item { | |
26 | anchors.fill: parent |
|
26 | anchors.fill: parent | |
27 |
|
27 | |||
28 | //![1] |
|
28 | //![1] |
@@ -22,7 +22,7 | |||||
22 | import QtQuick 2.0 |
|
22 | import QtQuick 2.0 | |
23 | import QtCharts 2.0 |
|
23 | import QtCharts 2.0 | |
24 |
|
24 | |||
25 | Rectangle { |
|
25 | Item { | |
26 | anchors.fill: parent |
|
26 | anchors.fill: parent | |
27 |
|
27 | |||
28 | //![1] |
|
28 | //![1] |
@@ -22,7 +22,7 | |||||
22 | import QtQuick 2.0 |
|
22 | import QtQuick 2.0 | |
23 | import QtCharts 2.0 |
|
23 | import QtCharts 2.0 | |
24 |
|
24 | |||
25 | Rectangle { |
|
25 | Item { | |
26 | anchors.fill: parent |
|
26 | anchors.fill: parent | |
27 |
|
27 | |||
28 | //![1] |
|
28 | //![1] |
@@ -22,7 +22,7 | |||||
22 | import QtQuick 2.0 |
|
22 | import QtQuick 2.0 | |
23 | import QtCharts 2.0 |
|
23 | import QtCharts 2.0 | |
24 |
|
24 | |||
25 | Rectangle { |
|
25 | Item { | |
26 | anchors.fill: parent |
|
26 | anchors.fill: parent | |
27 |
|
27 | |||
28 | //![1] |
|
28 | //![1] |
@@ -23,7 +23,7 | |||||
23 | import QtQuick 2.0 |
|
23 | import QtQuick 2.0 | |
24 | //![1] |
|
24 | //![1] | |
25 |
|
25 | |||
26 | Rectangle { |
|
26 | Item { | |
27 | width: 600 |
|
27 | width: 600 | |
28 | height: 400 |
|
28 | height: 400 | |
29 | property bool sourceLoaded: false |
|
29 | property bool sourceLoaded: false |
@@ -22,7 +22,7 | |||||
22 | import QtQuick 2.0 |
|
22 | import QtQuick 2.0 | |
23 | import QtCharts 2.0 |
|
23 | import QtCharts 2.0 | |
24 |
|
24 | |||
25 | Rectangle { |
|
25 | Item { | |
26 | width: 400 |
|
26 | width: 400 | |
27 | height: 300 |
|
27 | height: 300 | |
28 | property int __activeIndex: 1 |
|
28 | property int __activeIndex: 1 |
@@ -22,7 +22,7 | |||||
22 | import QtQuick 2.0 |
|
22 | import QtQuick 2.0 | |
23 | import QtCharts 2.0 |
|
23 | import QtCharts 2.0 | |
24 |
|
24 | |||
25 | Rectangle { |
|
25 | Item { | |
26 | id: chartViewSelector |
|
26 | id: chartViewSelector | |
27 | width: parent.width |
|
27 | width: parent.width | |
28 | height: parent.height |
|
28 | height: parent.height |
@@ -22,7 +22,7 | |||||
22 | import QtQuick 2.0 |
|
22 | import QtQuick 2.0 | |
23 | import QtCharts 2.0 |
|
23 | import QtCharts 2.0 | |
24 |
|
24 | |||
25 | Rectangle { |
|
25 | Item { | |
26 | id: main |
|
26 | id: main | |
27 | width: 400 |
|
27 | width: 400 | |
28 | height: 320 |
|
28 | height: 320 |
@@ -23,7 +23,7 import QtQuick 2.0 | |||||
23 | import QtCharts 2.0 |
|
23 | import QtCharts 2.0 | |
24 | import QtQuick.XmlListModel 2.0 |
|
24 | import QtQuick.XmlListModel 2.0 | |
25 |
|
25 | |||
26 | Rectangle { |
|
26 | Item { | |
27 | width: 400 |
|
27 | width: 400 | |
28 | height: 300 |
|
28 | height: 300 | |
29 | property int currentIndex: -1 |
|
29 | property int currentIndex: -1 |
@@ -51,6 +51,7 int main(int argc, char *argv[]) | |||||
51 |
|
51 | |||
52 | viewer.setSource(QUrl("qrc:/qml/qmloscilloscope/main.qml")); |
|
52 | viewer.setSource(QUrl("qrc:/qml/qmloscilloscope/main.qml")); | |
53 | viewer.setResizeMode(QQuickView::SizeRootObjectToView); |
|
53 | viewer.setResizeMode(QQuickView::SizeRootObjectToView); | |
|
54 | viewer.setColor(QColor("#404040")); | |||
54 | viewer.show(); |
|
55 | viewer.show(); | |
55 |
|
56 | |||
56 | return app.exec(); |
|
57 | return app.exec(); |
@@ -22,11 +22,10 | |||||
22 | import QtQuick 2.0 |
|
22 | import QtQuick 2.0 | |
23 |
|
23 | |||
24 | //![1] |
|
24 | //![1] | |
25 | Rectangle { |
|
25 | Item { | |
26 | id: main |
|
26 | id: main | |
27 | width: 600 |
|
27 | width: 600 | |
28 | height: 400 |
|
28 | height: 400 | |
29 | color: "#404040" |
|
|||
30 |
|
29 | |||
31 | ControlPanel { |
|
30 | ControlPanel { | |
32 | id: controlPanel |
|
31 | id: controlPanel |
@@ -22,7 +22,7 | |||||
22 | import QtQuick 2.0 |
|
22 | import QtQuick 2.0 | |
23 | import QtCharts 2.0 |
|
23 | import QtCharts 2.0 | |
24 |
|
24 | |||
25 | Rectangle { |
|
25 | Item { | |
26 | anchors.fill: parent |
|
26 | anchors.fill: parent | |
27 | //![1] |
|
27 | //![1] | |
28 | PolarChartView { |
|
28 | PolarChartView { |
@@ -22,7 +22,7 | |||||
22 | import QtQuick 2.0 |
|
22 | import QtQuick 2.0 | |
23 | import QtCharts 2.0 |
|
23 | import QtCharts 2.0 | |
24 |
|
24 | |||
25 | Rectangle { |
|
25 | Item { | |
26 | anchors.fill: parent |
|
26 | anchors.fill: parent | |
27 |
|
27 | |||
28 | //![1] |
|
28 | //![1] |
General Comments 0
You need to be logged in to leave comments.
Login now