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. "QtQuick" plugin "qtquick2plugin" not found in MacOS C++ app using Qt5.15.2
Forum Updated to NodeBB v4.3 + New Features

"QtQuick" plugin "qtquick2plugin" not found in MacOS C++ app using Qt5.15.2

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
qtquick2plugin5.15
22 Posts 3 Posters 5.5k Views 2 Watching
  • 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #21

    Sorry, I thought you were saying the installer issue was fixed.

    Hence my request to reproduce your issue with a minimal example, that will allow to check what is going on on macOS.

    Interested in AI ? www.idiap.ch
    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

    1 Reply Last reply
    0
    • veryqtpersonV Offline
      veryqtpersonV Offline
      veryqtperson
      wrote on last edited by
      #22

      I've gotten the same problem with my static build of Qt 5.15.2.

      The solution in my case (using CMake) was to call qt5_import_qml_plugins:

      get_target_property(QT_TARGET_TYPE Qt5::Core TYPE)
      if(${QT_TARGET_TYPE} STREQUAL "STATIC_LIBRARY")
          find_package(Qt5QmlImportScanner REQUIRED)
          qt5_import_qml_plugins(${CMAKE_PROJECT_NAME})
      endif()
      

      Not sure what is the equivalent in Qt 6, haven't tested it myself and can't find qt6_import_qml_plugins in documentation.

      Anyway, qt5_import_qml_plugins is available only from Qt 5.14(?), so for older versions the alternative would be this external module.

      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