Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. module "Qt.labs.platform" is not installed, macdeployqt not copy qt/labs/platform?
Qt 6.11 is out! See what's new in the release blog

module "Qt.labs.platform" is not installed, macdeployqt not copy qt/labs/platform?

Scheduled Pinned Locked Moved Solved Installation and Deployment
3 Posts 2 Posters 2.9k Views 1 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.
  • C Offline
    C Offline
    cnscud
    wrote on last edited by
    #1

    Enviroment:

      QT 5.14.2, MacOSX 10.15.4 Catalina,  
      build-trytodolist-Desktop_x86_darwin_generic_mach_o_64bit
    

    project.pro:
    QT += quick
    QT += widgets
    CONFIG += c++11

    I use SystemTrayIcon:

       SystemTrayIcon {
            visible: true
            icon.source: "media/todo.png"
    
            menu: Menu {
                MenuItem {
                    text: qsTr("Quit")
                    onTriggered: Qt.quit()
                }
            }
        }
    

    Everything ok in QT debug running mode.

    And I deploy the dmg:

    ~/Qt/5.14.2/clang_64/bin/macdeployqt  trytodolist.app -qmldir=/Users/username/Qt/5.14.2/clang_64/qml  -dmg
    

    the dmg is generated, but when I run the app, I got:

    QQmlApplicationEngine failed to load component
    qrc:/main.qml:4:1: module "Qt.labs.platform" is not installed
    

    I check the path: "build-trytodolist-Desktop_x86_darwin_generic_mach_o_64bit-Debug/trytodolist.app/Contents/Resources/qml/Qt/labs"

    not find the "platform" subdirectory, but find "calendar" and "settings".

    so, how to fix this? or is it a bug a macdeployqt?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      The qmldir option should point to your application's qml files.

      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
      1
      • C Offline
        C Offline
        cnscud
        wrote on last edited by
        #3

        thanks.

        change: -qmldir=/Users/username/myproject/trytodolist/

        It works fine.

        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