Trying to load playlist after playlist into a QMediaPlayer in a QVideoWidget, the QMediaPlaylist just keeps adding to the previous playlist however.
even after calling
Qt Code:
  1. playlist->~QMediaPlayList();
  2. videoWidget->~QVideoWidget();
To copy to clipboard, switch view to plain text mode 

after playlist is done, and before starting a new one.


playlist and videoWidget are in my header like this:
Qt Code:
  1. QVideoWidget *videoWidget;
  2. QMediaPlaylist *playlist;
To copy to clipboard, switch view to plain text mode 

I even disconnect all the QMediaPlayer connections and the QMediaPlaylist connection...

any tips on this? I thought a deconstructor got rid of the class object instance so that a new one can be dynamically created.