user4592357
10th March 2018, 18:16
i suppose there is a way to define a sound resource in .qrc and have it played.
but how?
QSound::play(":/sounds/abracadabra") doesn't work.
it's defined like this in .qrc
<qresource prefix="/sounds">
<file alias="abracadabra">sounds/abracadabra.wav</file>
</qresource>
but how?
QSound::play(":/sounds/abracadabra") doesn't work.
it's defined like this in .qrc
<qresource prefix="/sounds">
<file alias="abracadabra">sounds/abracadabra.wav</file>
</qresource>