Qt World Summit: Register Today!

Problem with qml

  • 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

  • Moderators

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

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

  • Moderators

    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/).

Log in to reply