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. No rule to make target qrc_qml.cpp
Forum Updated to NodeBB v4.3 + New Features

No rule to make target qrc_qml.cpp

Scheduled Pinned Locked Moved Unsolved General and Desktop
20 Posts 4 Posters 11.0k 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.
  • elicatE elicat

    @raven-worx yes, it's all right

    here the file qrc:

    <RCC>
        <qresource prefix="/">
            <file>main.qml</file>
            <file>edit.qml</file>
            <file>images/button_down.png</file>
            <file>images/button_up.png</file>
            <file>images/add_records.png</file>
            <file>images/delete_records.png</file>
            <file>images/close.png</file>
            <file>js/script.js</file>
            <file>images/edit_records.png</file>
            <file>file di prove eseguite/dichiarative.cpp</file>
            <file>file di prove eseguite/dichiarative.h</file>
            <file>file di prove eseguite/editmodel.cpp</file>
            <file>file di prove eseguite/editmodel.h</file>
            <file>file di prove eseguite/globali.cpp</file>
            <file>file di prove eseguite/globali.h</file>
            <file>mycomponent/button.qml</file>
            <file>images/menu.png</file>
            <file>mycomponent/MyDelagateFieldEdit.qml</file>
        </qresource>
    </RCC>
    
    
    raven-worxR Offline
    raven-worxR Offline
    raven-worx
    Moderators
    wrote on last edited by
    #11

    @elicat said in No rule to make target qrc_qml.cpp:

    <file>mycomponent/MyDelagateFieldEdit.qml</file>

    MyDelAgate.qml is really correct? Sure it shouldnt be MyDelEgate.qml?

    --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
    If you have a question please use the forum so others can benefit from the solution in the future

    elicatE 1 Reply Last reply
    1
    • raven-worxR raven-worx

      @elicat said in No rule to make target qrc_qml.cpp:

      <file>mycomponent/MyDelagateFieldEdit.qml</file>

      MyDelAgate.qml is really correct? Sure it shouldnt be MyDelEgate.qml?

      elicatE Offline
      elicatE Offline
      elicat
      wrote on last edited by
      #12

      @raven-worx I'm sure. The name is wrong but in the file edit.qml is correct :

      . . . .
      import "./mycomponent"
      
      . . . . 
                model: myModelEdit
                  delegate: MyDelagateFieldEdit {}
                  onCurrentIndexChanged: {
      . . . .
      

      Saluti, Gianfranco Elicat

      raven-worxR 1 Reply Last reply
      0
      • elicatE elicat

        @raven-worx I'm sure. The name is wrong but in the file edit.qml is correct :

        . . . .
        import "./mycomponent"
        
        . . . . 
                  model: myModelEdit
                    delegate: MyDelagateFieldEdit {}
                    onCurrentIndexChanged: {
        . . . .
        
        raven-worxR Offline
        raven-worxR Offline
        raven-worx
        Moderators
        wrote on last edited by
        #13

        @elicat
        it may be "correct" in the qml file, but your error is already raised at compile time.
        My last question is, is the file (in the filesystem) really named like in the qrc file?
        If your answers were really correct i have no idea. It has to be something with mismatching filename/path, thats what the error says.

        --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
        If you have a question please use the forum so others can benefit from the solution in the future

        elicatE 1 Reply Last reply
        1
        • raven-worxR raven-worx

          @elicat
          it may be "correct" in the qml file, but your error is already raised at compile time.
          My last question is, is the file (in the filesystem) really named like in the qrc file?
          If your answers were really correct i have no idea. It has to be something with mismatching filename/path, thats what the error says.

          elicatE Offline
          elicatE Offline
          elicat
          wrote on last edited by
          #14

          @raven-worx said in No rule to make target qrc_qml.cpp:

          @elicat
          it may be "correct" in the qml file, but your error is already raised at compile time.
          My last question is, is the file (in the filesystem) really named like in the qrc file?
          If your answers were really correct i have no idea. It has to be something with mismatching filename/path, thats what the error says.

          Good morning, It's what I always thought too. But I can not find it. Where do I see if the name in the file system is correct?

          Saluti, Gianfranco Elicat

          raven-worxR 1 Reply Last reply
          0
          • elicatE elicat

            @raven-worx said in No rule to make target qrc_qml.cpp:

            @elicat
            it may be "correct" in the qml file, but your error is already raised at compile time.
            My last question is, is the file (in the filesystem) really named like in the qrc file?
            If your answers were really correct i have no idea. It has to be something with mismatching filename/path, thats what the error says.

            Good morning, It's what I always thought too. But I can not find it. Where do I see if the name in the file system is correct?

            raven-worxR Offline
            raven-worxR Offline
            raven-worx
            Moderators
            wrote on last edited by
            #15

            @elicat said in No rule to make target qrc_qml.cpp:

            Where do I see if the name in the file system is correct?

            are you kidding me?!?
            Navigate to the folder and check if the file is named correctly

            --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
            If you have a question please use the forum so others can benefit from the solution in the future

            elicatE 1 Reply Last reply
            0
            • raven-worxR raven-worx

              @elicat said in No rule to make target qrc_qml.cpp:

              Where do I see if the name in the file system is correct?

              are you kidding me?!?
              Navigate to the folder and check if the file is named correctly

              elicatE Offline
              elicatE Offline
              elicat
              wrote on last edited by
              #16

              @raven-worx said in No rule to make target qrc_qml.cpp:

              are you kidding me?!?

              absolutely no, you have patience. I thought there was something else.
              however, the post I did it because I copied a project from a computer, where it works to another and I have not changed anything except the position of compiling the project. That's why I can not understand what's missing.
              I try to check for the tenth time.

              Saluti, Gianfranco Elicat

              raven-worxR 1 Reply Last reply
              0
              • elicatE elicat

                @raven-worx said in No rule to make target qrc_qml.cpp:

                are you kidding me?!?

                absolutely no, you have patience. I thought there was something else.
                however, the post I did it because I copied a project from a computer, where it works to another and I have not changed anything except the position of compiling the project. That's why I can not understand what's missing.
                I try to check for the tenth time.

                raven-worxR Offline
                raven-worxR Offline
                raven-worx
                Moderators
                wrote on last edited by
                #17

                @elicat said in No rule to make target qrc_qml.cpp:

                I copied a project from a computer, where it works to another and I have not changed anything except the position of compiling the project

                what did you copy? Also the build directory and the .pro.user file?

                --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
                If you have a question please use the forum so others can benefit from the solution in the future

                elicatE 1 Reply Last reply
                0
                • raven-worxR raven-worx

                  @elicat said in No rule to make target qrc_qml.cpp:

                  I copied a project from a computer, where it works to another and I have not changed anything except the position of compiling the project

                  what did you copy? Also the build directory and the .pro.user file?

                  elicatE Offline
                  elicatE Offline
                  elicat
                  wrote on last edited by
                  #18

                  @raven-worx I have copy all directory of project and after i have removed *.pro.user. When project after this, request configure.

                  Saluti, Gianfranco Elicat

                  raven-worxR 1 Reply Last reply
                  0
                  • elicatE elicat

                    @raven-worx I have copy all directory of project and after i have removed *.pro.user. When project after this, request configure.

                    raven-worxR Offline
                    raven-worxR Offline
                    raven-worx
                    Moderators
                    wrote on last edited by
                    #19

                    @elicat said in No rule to make target qrc_qml.cpp:

                    When project after this, request configure.

                    yes that's normal behavior. The .pro.user file should always only be used on the machine it was created.

                    --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
                    If you have a question please use the forum so others can benefit from the solution in the future

                    1 Reply Last reply
                    1
                    • M Offline
                      M Offline
                      MaxKofler
                      wrote on last edited by
                      #20

                      I know the solution:

                      You added this file to qml.qrc or any other qrc. You just have to copy it under another name and it runs!!!

                      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