View Single Post
Posts: 200 | Thanked: 44 times | Joined on Jan 2010
#2
have you tryed adding it to the qrc file. im no expert but i do that with all my graphics befor i load them. This i think imbeds them in the executable tho which means its not optifyed. so before uploading to extras or testing you will have to work out how to load them from file and add them to the opt folder for your app.

What i know is in a browser you would use file:// to access a local file instead of a remote webservers file.

but if i am loading a image from file in qt i would pass the string ":sprites/image.png"

sprites being the folder in the src directory that holds the images.

image.png being the image in the folder.

for you this would be something like ":sounds/sounds1.wav"

or maybe "file://sounds/sound1.wav"

Last edited by jamie721; 2010-10-28 at 21:27.
 

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