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

QML_IMPORT_NAME in qmake .pro file no longer works

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • 6.5
    • 6.3.0, 6.3.1
    • Build System
    • Android

      The problem can be reproduced using the qt provided hangman demo project.

      [built on macOS Bug Sur (11.6.7)]

      The following lines:

      CONFIG += qmltypes
      QML_IMPORT_PATH = $$PWD/hangmangame.h
      QML_IMPORT_NAME = Hangman
      QML_IMPORT_MAJOR_VERSION = 1 

      Fails to register the Hangman qml import and you get the following error on Android:

      W libhangman_arm64-v8a.so: qrc:/qml/MainView.qml:53:1: module "Hangman" is not installed 

      NB: This may be an intermittent bug as opening the CMakeList.txt project and running that worked and then when going back to the .pro project this then worked ok.

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

            qtqmlteam Qt Qml Team User
            pcheeseman Peter Cheeseman
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes