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. Problem with qml
Forum Updated to NodeBB v4.3 + New Features

Problem with qml

Scheduled Pinned Locked Moved QML and Qt Quick
4 Posts 2 Posters 1.1k 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.
  • Y Offline
    Y Offline
    youyou
    wrote on last edited by
    #1

    hi,
    i have this problem in my project but i don't know what i had to do
    .Qml debugging is enabled. Only use this in a safe environment!
    file:///C:/Users/USER/Desktop/projectsQt/test 11/build-test1-Desktop_Qt_5_1_0_MinGW_32bit-Debug/qml.qml: File not found
    please help me

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Clearly, the path to qml.qml is wrong. You need to fix this in your code.

      (Z(:^

      1 Reply Last reply
      0
      • Y Offline
        Y Offline
        youyou
        wrote on last edited by
        #3

        but it's in the same file and i just had to write view.setSource(QUrl::fromLocalFile("qml.qml"));
        isn't that!!!

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          The path is relative and you are doing a shadow build - it's almost certain that qml.qml is not in the folder the executable is placed in (in your case: file:///C:/Users/USER/Desktop/projectsQt/test 11/build-test1-Desktop_Qt_5_1_0_MinGW_32bit-Debug/).

          (Z(:^

          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