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. qml : no such directory

qml : no such directory

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
7 Posts 3 Posters 4.7k 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.
  • C Offline
    C Offline
    cosmoff
    wrote on last edited by cosmoff
    #1

    Hello everybody,

    in a file Qml I did an import to retrieve a Background.qml

    import "../../../libData/qml/Common/"

    but the terminal writes :
    qrc:/qml/project.qml:4 ""../../../libData/qml/Common/": no such directory
    however my Background{
    ...
    }
    is recognized thanks to my import "../../../libData/qml/Common/"

    Do you have an idea ?

    thanks

    JonBJ 1 Reply Last reply
    0
    • ODБOïO Offline
      ODБOïO Offline
      ODБOï
      wrote on last edited by
      #2

      @cosmoff hi,
      is Background in your qrc ?

      try : close the project / delete *.pro.user / open the project (configure)

      1 Reply Last reply
      0
      • C cosmoff

        Hello everybody,

        in a file Qml I did an import to retrieve a Background.qml

        import "../../../libData/qml/Common/"

        but the terminal writes :
        qrc:/qml/project.qml:4 ""../../../libData/qml/Common/": no such directory
        however my Background{
        ...
        }
        is recognized thanks to my import "../../../libData/qml/Common/"

        Do you have an idea ?

        thanks

        JonBJ Offline
        JonBJ Offline
        JonB
        wrote on last edited by
        #3

        @cosmoff
        I don't do QML, but just a very quickie: if you're on Windows, the examples don't have your trailing / on import /directory, it's not that is it? Windows can be fussy about trailing /s on directories sometimes....

        1 Reply Last reply
        0
        • C Offline
          C Offline
          cosmoff
          wrote on last edited by
          #4

          I am working actually on Ubuntu.
          Yes Background is in my qrc

          1 Reply Last reply
          0
          • C Offline
            C Offline
            cosmoff
            wrote on last edited by
            #5

            My Background is in a qrc but from another project

            1 Reply Last reply
            0
            • C Offline
              C Offline
              cosmoff
              wrote on last edited by cosmoff
              #6

              problem resolved thanks to the idea from LeLev, thanks a lot !

              ODБOïO 1 Reply Last reply
              0
              • C cosmoff

                problem resolved thanks to the idea from LeLev, thanks a lot !

                ODБOïO Offline
                ODБOïO Offline
                ODБOï
                wrote on last edited by
                #7

                @cosmoff Nice! You can mark this SOLVED

                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