i suppose there is a way to define a sound resource in .qrc and have it played.

but how?

Qt Code:
  1. QSound::play(":/sounds/abracadabra")
To copy to clipboard, switch view to plain text mode 
doesn't work.

it's defined like this in .qrc
Qt Code:
  1. <qresource prefix="/sounds">
  2. <file alias="abracadabra">sounds/abracadabra.wav</file>
  3. </qresource>
To copy to clipboard, switch view to plain text mode