View Single Post
Jaffa's Avatar
Posts: 2,535 | Thanked: 6,681 times | Joined on Mar 2008 @ UK
#71
Originally Posted by Sasler View Post
Thanks for this suggestion. Unfortunately, after playing around with this quite a bit and wondering why it doesn't work, I found the following in QSound Class Reference So, are there any other ways I could do this?
Taking a leaf from my Java book, and without ever having tried this, or read the Qt docs before: pass the QResource->absoluteFilePath() into the QSound constructor.

I'd guess this won't work on systems where the resource really is embedded within the executable, but you never know...
__________________
Andrew Flegg -- mailto:andrew@bleb.org | http://www.bleb.org
 

The Following User Says Thank You to Jaffa For This Useful Post: