External resource in pro file

  • How can I add external resource in file? For example in pro file I have:
    RESOURCES = application.qrc
    Then a resource will be build-in application, but I want to use an external resource. So my problem is:
    How add resource to pro file that making a project will generate a application.rcc and copy it to binary folder? Then I would use this resource by code:

    Sorry for my eng.

  • You can add the generation in a QMAKE_POST_LINK step. Or put the rcc call and the copy step into a script and add this as QMAKE_POST_LINK.

  • Thanx for reply. You confirm my idea to create a script which will run rcc and copy resource to folder with application binary. I made a prototype script in python.

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.