<BUMP>
I know its an old thread but I am having the same problem. Also using basically the same code.
<BUMP>
I know its an old thread but I am having the same problem. Also using basically the same code.
The error is likely because the view needs the event loop to run so it can clean up things from the old chart and initialize from the new one. But by calling delete on the old chart instance, you pull the rug out from under it.
Try replacing "delete oldSignalData" with "oldSignalData->deleteLater()". This will result in the old instance being deleted, but not until the event loop has had a chance to run.
<=== The Great Pumpkin says ===>
Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.
@W1bowo (and all of the other names you are posting under): STOP DOING THIS. I have reported you as a troll.
If you want to thank someone for a useful post, use the "Thanks" button. DO NOT quote a part of a post and add a +1. It's trolling and is not making any useful contribution to the forum.
<=== The Great Pumpkin says ===>
Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.
Bookmarks