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