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

QML_IMPORT_NAME in qmake .pro file no longer works

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 6.3.0, 6.3.1
    • Fix Version/s: 6.5
    • Component/s: Build System
    • Platform/s:
      Android

      Description

      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.

        Attachments

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

          Activity

            People

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

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes