Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-134312

doc: explain differences/disadvantages of directory imports and module imports

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • P3: Somewhat important
    • 6.11
    • 6.10
    • Documentation
    • None

    Description

      In https://doc.qt.io/qt-6/qtqml-syntax-directoryimports.html, there should be an explanation of the difference between directory imports and QML module imports, and links to how to create QML modules (like the new page created in QTBUG-133547, for example).

      The page misses e.g. that a directory import can't be used if C++ types are needed (potentially at a later point during development), and that you can mock modules when using module imports by putting the mock modules location to the front of the import path, which can't be done with directory imports.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qtqmlteam Qt Qml Team User
            sami.shalayel Sami Shalayel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes