i suppose there is a way to define a sound resource in .qrc and have it played.
but how?
QSound::play(":/sounds/abracadabra")
QSound::play(":/sounds/abracadabra")
To copy to clipboard, switch view to plain text mode
doesn't work.
it's defined like this in .qrc
<qresource prefix="/sounds">
<file alias="abracadabra">sounds/abracadabra.wav</file>
</qresource>
<qresource prefix="/sounds">
<file alias="abracadabra">sounds/abracadabra.wav</file>
</qresource>
To copy to clipboard, switch view to plain text mode
Bookmarks