Results 1 to 2 of 2

Thread: OS X -- Using macdeployqt - where to put images and data subdirectories?

  1. #1
    Join Date
    Sep 2006
    Posts
    10
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Windows

    Default OS X -- Using macdeployqt - where to put images and data subdirectories?

    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

  2. #2
    Join Date
    Oct 2009
    Posts
    364
    Thanks
    10
    Thanked 37 Times in 36 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: OS X -- Using macdeployqt - where to put images and data subdirectories?

    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

Similar Threads

  1. Searching files from directories & its subdirectories
    By ashukla in forum Qt Programming
    Replies: 4
    Last Post: 12th April 2014, 13:57
  2. Creating images from sets of data.
    By maverick_pol in forum Qt Programming
    Replies: 5
    Last Post: 26th February 2008, 10:25
  3. Replies: 3
    Last Post: 17th May 2007, 14:50
  4. qmake + subdirectories
    By niko in forum Qt Programming
    Replies: 9
    Last Post: 14th April 2007, 19:50

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.