Created
November 13, 2017 08:57
-
-
Save marco-piccolino/0559bf87da50385f59a24e7a19d5f5ba to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import QtQuick 2.9 | |
| import QtQuick.Window 2.2 | |
| import QtCharts 2.0 | |
| Window { | |
| id: window | |
| visible: true | |
| width: 640 | |
| height: 480 | |
| Column{ | |
| Repeater { | |
| model: ListModel { | |
| id: listModel | |
| } | |
| delegate: ChartView { | |
| width: window.width | |
| height: 300 | |
| LineSeries { | |
| id: lineSeries | |
| name: "lineseries" | |
| color: "blue" | |
| } | |
| } | |
| } | |
| } | |
| Component.onCompleted: { | |
| listModel.append({"name":"one"}) | |
| listModel.clear() | |
| listModel.append({"name":"two"}) | |
| listModel.append({"name":"three"}) | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, I also have this kind of issue, app crash or display a report message to Apple.
I had worked around and found an interesting thing is that: if I delete the id of LineSeries, it didn't happen.
I tried with other types of QCharts and found the same, it the Series has id, it will be crash.