Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Where to find shared.qrc / shared.h?
Qt 6.11 is out! See what's new in the release blog

Where to find shared.qrc / shared.h?

Scheduled Pinned Locked Moved Solved QML and Qt Quick
3 Posts 2 Posters 806 Views 2 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.
  • Stan HuangS Offline
    Stan HuangS Offline
    Stan Huang
    wrote on last edited by
    #1

    I tried to download files mentioned at "https://doc.qt.io/qt-5/qtdoc-demos-calqlatr-example.html" and then built them. I got errors:
    No rule to make target './shared/shared.qrc', needed by 'debug/qrc-shared.cpp'. Stop
    ../shared/shared.h: No such file or directory

    But I didn't find these two files at that page. How come?

    1 Reply Last reply
    0
    • Stan HuangS Offline
      Stan HuangS Offline
      Stan Huang
      wrote on last edited by
      #2

      I found #include "../shared.h" at main.cpp. But where to find it?

      1 Reply Last reply
      0
      • Shrinidhi UpadhyayaS Offline
        Shrinidhi UpadhyayaS Offline
        Shrinidhi Upadhyaya
        wrote on last edited by
        #3

        Hi @Stan-Huang , i dont know why you have tried to download the files and then build!

        1. You can go to "Examples" tab in Qt Creator and then search for "calqlatr", you will find it.
        2. This is the path for the "shared.qrc", "C:\Qt\Qt5.12.1\Examples\Qt-5.12.1\demos\shared"
          Here in this path you can find the header as well as the qrc file.
          Note: i have installed Qt in C directory, so please search in the directory where you have installed.
        3. If you still want to build the application which you have downloaded files for then copy and paste the "shared.qrc" file from the path given in(2.) and the change the path for "shared.qrc" in your pro file.

        Shrinidhi Upadhyaya.
        Upvote the answer(s) that helped you to solve the issue.

        1 Reply Last reply
        2

        • Login

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