Of course, what you are doing leaks memory for the QChartView. And since you create your QChartView without a parent, it is a top-level window and probably won't appear where you want it to.
If that isn't the behavior you want, then you'll have to explain what should happen when the new chart is displayed.
Bookmarks