Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [SOLVED] Simple question about rcc
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Simple question about rcc

Scheduled Pinned Locked Moved General and Desktop
8 Posts 2 Posters 2.6k Views 1 Watching
  • 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.
  • H Offline
    H Offline
    heiopei
    wrote on last edited by
    #1

    I have a simple question. I read this about the rcc system: http://qt-project.org/doc/qt-4.8/resources.html
    But I don't understand where I can extecute this command to register the resource in my binary:

    @rcc -binary myresource.qrc -o myresource.rcc@

    1 Reply Last reply
    0
    • E Offline
      E Offline
      euchkatzl
      wrote on last edited by
      #2

      Just Add the following line to your pro file

      RESOURCES += pathToYourqrcFile.qrc

      1 Reply Last reply
      0
      • H Offline
        H Offline
        heiopei
        wrote on last edited by
        #3

        Are you sure? Isn't the second step after register the resource?

        This is the error message:

        bq. No rule to make target 'resource_images.qrc', needed by 'debug/qrc_resource_images.cpp'. Stop.

        1 Reply Last reply
        0
        • E Offline
          E Offline
          euchkatzl
          wrote on last edited by
          #4

          Did you clean your project and did a clean qmake ?

          is the path to your qrc file correct ?

          it must be relative to your pro file!

          For Example if your pro is in your project folder :

          @YourProjectFolder/yourprofile.pro@

          And your qrc file is in an extra folder (eg. Resources):

          @YourProjectFolder/Resources/yourqrc.qrc@

          In your pro file it must be :

          @RESOURCES += Resources/yourqrc.qrc@

          1 Reply Last reply
          0
          • H Offline
            H Offline
            heiopei
            wrote on last edited by
            #5

            Hey, thank you for your time. Now its working. I forgot Xml tags in my qrc file.

            @<!DOCTYPE RCC><RCC version="1.0">
            <qresource>

            </qresource>
            </RCC>@

            1 Reply Last reply
            0
            • E Offline
              E Offline
              euchkatzl
              wrote on last edited by
              #6

              But i don't think that was causing the error :
              @No rule to make target ‘resource_images.qrc’, needed by ‘debug/qrc_resource_images.cpp’. Stop.@

              It is always a good idea to delete you build folder and run a clean qmake.

              That solves much of errors.

              1 Reply Last reply
              0
              • H Offline
                H Offline
                heiopei
                wrote on last edited by
                #7

                Ah okay. Yeah I cleaned my project in same step, so maybe you are right. :)

                1 Reply Last reply
                0
                • H Offline
                  H Offline
                  heiopei
                  wrote on last edited by
                  #8

                  Okay I have one more question. It works well with my images. But now i tried to create a resource of my database and I can't connect to it. Isn't it possible with a sqlite database?

                  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