Skip to content

Instantly share code, notes, and snippets.

@marco-piccolino
Created November 13, 2017 08:57
Show Gist options
  • Select an option

  • Save marco-piccolino/0559bf87da50385f59a24e7a19d5f5ba to your computer and use it in GitHub Desktop.

Select an option

Save marco-piccolino/0559bf87da50385f59a24e7a19d5f5ba to your computer and use it in GitHub Desktop.
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"})
}
}
@vtongcoder
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment