PDA

View Full Version : OS X -- Using macdeployqt - where to put images and data subdirectories?



cometlinear
19th February 2010, 20:56
Hi everyone,

I'm deploying a simple app for OS X.

I am having some trouble putting resources (images) in the correct location. When they are at the same level as the binary, they are not found. Same when they are placed in Resources.

Can someone please tell me where in the app bundle my resources should go, and how to set the path in my source file code?


Thank you! Kind regards,
-joshua

schnitzel
22nd February 2010, 21:48
first, add a qrc file to your project under resources by right clicking on your project name, then Add New..., then select Qt Resource File.
Next, you need to add your image references to this file. I typically store my images for icons in a subfolder 'images' in the project folder.
hope this helps