Skip to content
  • 0 Votes
    2 Posts
    17k Views
    J

    @mnokka

    Are you sure your path is correct? If Qt can't find the file it gives the "error decoding source" message which is misleading.

    Add files to your resource file:

    (If you haven't already created one go to File | New | Qt | Qt Resource File). Click Add existing files then select sound files you want Right click and copy path Paste path to play filename. e.g. QSound::play(":/lose.wav");