for whatever reason Class AudioPlayer(QMainWindow): does not stop the player when closing the window. This is because closeEvent isn't called. I've tried hooking the destroyed signal to it but that doesn't call it either.
Since there doesn't seem to be a solution I'm just calling self.player.stop() whenever the hideEvent is called. It's a decent workaround although i think it also means that the player will close on minimizing.
Worth mentioning the same problem is happening in the module designer. It's also possible the closeEvent calls perfectly normal in the frozen exe as I never use it.
for whatever reason Class AudioPlayer(QMainWindow): does not stop the player when closing the window. This is because closeEvent isn't called. I've tried hooking the destroyed signal to it but that doesn't call it either.
Since there doesn't seem to be a solution I'm just calling self.player.stop() whenever the hideEvent is called. It's a decent workaround although i think it also means that the player will close on minimizing.