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. Qt Creator don't process qmldir file

Qt Creator don't process qmldir file

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 227 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.
  • Kiria-FK Offline
    Kiria-FK Offline
    Kiria-F
    wrote on last edited by Kiria-F
    #1

    Project setup:

    • All .qml files (and qmldir) are placed in a single directory and have a single prefix in the resource system.
    • In CMakeLists.txt I added my .qrc file to qt_add_executable and used CMAKE_AUTORECC.
    • I have two versions of one QML module, named WTextField-1.0.qml and WTextField-2.0.qml.
    • I have a qmldir file containing these lines:
    WTextField 1.0 WTextField-1.0.qml
    WTextField 2.0 WTextField-2.0.qml
    
    • I don't import QML modules into other manually (like import "Module.qml").
    • I use just the WTextField name in other QML modules.

    I can provide you with more details if you need.

    The problem:

    • First of all, Qt Creator can't process this qmldir file properly, and I get M300 critical warnings: "Unknown component".
    • I have no syntax highlighting in the qmldir file.

    Maybe there is no such feature in Qt Creator, maybe my project configuration is bad somewhere.

    But:

    • The project has no problems at the build stage.
    • The application works with all successfully loaded modules.

    P.S.

    Just in case, you can check the MWE here:
    github.com/Kiria-F/qt-creator-bug-mwe.

    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