Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Compile qrc to rcc in Creator

Compile qrc to rcc in Creator

Scheduled Pinned Locked Moved Qt Creator and other tools
4 Posts 2 Posters 5.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    SteveKing
    wrote on last edited by
    #1

    Hi,

    I think I'm having brain fade at the moment, but can someone show me a simple .pro file that takes a single qrc file and creates an rcc from it? I don't want to build it into a DLL or an app, simply a binary set of resources that we can load at run time.

    Thanks,
    Steve

    1 Reply Last reply
    0
    • L Offline
      L Offline
      loladiro
      wrote on last edited by
      #2

      You do not need a .pro file. Just call the rcc from the command line:
      @
      rcc -binary myresource.qrc -o myresource.rcc
      @

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SteveKing
        wrote on last edited by
        #3

        I just thought it would be cleaner to have it in its own .pro as for our scenario it's a serperate buildable component. I guess I'll go with the command line.

        Thanks

        1 Reply Last reply
        0
        • L Offline
          L Offline
          loladiro
          wrote on last edited by
          #4

          You might be able to do something using "this":http://doc.qt.nokia.com/latest/qmake-environment-reference.html#customizing

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved