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:qrc:/main.qml:-1 No such file or directory
Qt 6.11 is out! See what's new in the release blog

QMl:qrc:/main.qml:-1 No such file or directory

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
qml
2 Posts 2 Posters 1.0k 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.
  • Y Offline
    Y Offline
    yongle wong
    wrote on last edited by
    #1

    hello,everyone!
    This's my program:

    QML debugging is enabled. Only use this in a safe environment.
    QQmlApplicationEngine failed to load component
    qrc:/main.qml:-1 No such file or directory
    
    import QtQuick 2.9
    import QtQuick.Window 2.2
    
    Window {
        visible: true
        width: 640
        height: 480
        title: qsTr("Hello World")
        }
    }
    
    V 1 Reply Last reply
    0
    • Y yongle wong

      hello,everyone!
      This's my program:

      QML debugging is enabled. Only use this in a safe environment.
      QQmlApplicationEngine failed to load component
      qrc:/main.qml:-1 No such file or directory
      
      import QtQuick 2.9
      import QtQuick.Window 2.2
      
      Window {
          visible: true
          width: 640
          height: 480
          title: qsTr("Hello World")
          }
      }
      
      V Offline
      V Offline
      Vijaykarthikeyan
      wrote on last edited by
      #2

      @yongle-wong check the filepath which you have added your qml file in Qt C++

      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