Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt Quick Start Project doesn't create valid main.qml file

Qt Quick Start Project doesn't create valid main.qml file

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
2 Posts 2 Posters 472 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.
  • R Offline
    R Offline
    ross_y
    wrote on last edited by
    #1

    Fresh Install of QT Using Qt Creator 11.0.3 Based on Qt6.4.3 (MSVC 2019, x86_64)
    Example projects launch and build fine.
    But if I try to create a new project using QtQuick after the source files are generated the main.qml does not have the expected content

    I have:

    /* This file is generated and only relevant for integrating the project into a Qt 6 and cmake based
    C++ project. */

    import QtQuick
    import content

    App {
    }

    Next to the import content is a warning * QML module not found (content).Import paths:C:/Qt/6.6.-/mingw_64/qmlfor qmake project...

    I was expecting the import content line to be import windows and the App to contain the definition for a basic empty window.

    What did I miss in the installation process?
    I was following the tutorial on re-creating a Tesla GUI and the process seems to work fine until I go to look at the main.qml where there is this issue.

    :

    B 1 Reply Last reply
    2
    • R ross_y

      Fresh Install of QT Using Qt Creator 11.0.3 Based on Qt6.4.3 (MSVC 2019, x86_64)
      Example projects launch and build fine.
      But if I try to create a new project using QtQuick after the source files are generated the main.qml does not have the expected content

      I have:

      /* This file is generated and only relevant for integrating the project into a Qt 6 and cmake based
      C++ project. */

      import QtQuick
      import content

      App {
      }

      Next to the import content is a warning * QML module not found (content).Import paths:C:/Qt/6.6.-/mingw_64/qmlfor qmake project...

      I was expecting the import content line to be import windows and the App to contain the definition for a basic empty window.

      What did I miss in the installation process?
      I was following the tutorial on re-creating a Tesla GUI and the process seems to work fine until I go to look at the main.qml where there is this issue.

      :

      B Offline
      B Offline
      bruno.lebtag.superlogica
      wrote on last edited by
      #2

      @ross_y Same here. I can't open the qml file in qml editor because of it. Any success?

      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