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

Provide a way to customize the "prefer" declaration in auto-generated qmldir files

XMLWordPrintable

      Auto-generated qmldir files currently contain a preferred path that's hard-coded to point to the embedded qrc location.

      There are some use-cases where users have resorted to manually removing the "prefer" line afterwards (see QTBUG-120435)

      Those use-cases could be helped by allowing users to provide a custom "prefer" declaration (with the understanding that pointing to the non-default location means losing the Qt Quick Compiler optimizations). An empty custom path should result in no "prefer" declaration, in which case the warnings in QTBUG-138268 would apply.

       

      Notes

      • This suggestion is a superset of QTBUG-138268 so I've closed that one. Similarly, QTBUG-138421 might be a better alternative to this one.
      • Unlike QTBUG-138268, this idea should be compatible with QTP0004 in general.

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

            qtqmlteam Qt Qml Team User
            skoh-qt Sze Howe Koh
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes