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. Windeployqt and QML
Forum Updated to NodeBB v4.3 + New Features

Windeployqt and QML

Scheduled Pinned Locked Moved Solved QML and Qt Quick
6 Posts 4 Posters 13.8k 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.
  • beeckscheB Offline
    beeckscheB Offline
    beecksche
    wrote on last edited by A Former User
    #1

    Hey,
    i've tried to deploy my qml app with windeployqt, but without success.

    I created the release build with Qt Creator. Then i copied the .exe and the folder with my .qml files into another folder to run windeployqt.

    I used:

    windeployqt --qmldir GUI MyApp.exe
    

    After calling, a lot of new folders and files are inserted. But when i want to run the app nothing happens. I get no error message. The app doesn't show. It's strange because i can run the app from Qt Creator without any problems. So i think i don't use the windeployqt tool correctly.

    Can anybody help? Thanks

    D 1 Reply Last reply
    2
    • beeckscheB beecksche

      Hey,
      i've tried to deploy my qml app with windeployqt, but without success.

      I created the release build with Qt Creator. Then i copied the .exe and the folder with my .qml files into another folder to run windeployqt.

      I used:

      windeployqt --qmldir GUI MyApp.exe
      

      After calling, a lot of new folders and files are inserted. But when i want to run the app nothing happens. I get no error message. The app doesn't show. It's strange because i can run the app from Qt Creator without any problems. So i think i don't use the windeployqt tool correctly.

      Can anybody help? Thanks

      D Offline
      D Offline
      Devopia53
      wrote on last edited by Devopia53
      #2

      @beecksche

      Hi

      You should use QML installing path instead of GUI.

      for example)

      windeployqt --release --qmldir C:\Qt\Qt5.7.0\5.7\mingw53_32\qml MyApp.exe
      
      beeckscheB 1 Reply Last reply
      3
      • D Devopia53

        @beecksche

        Hi

        You should use QML installing path instead of GUI.

        for example)

        windeployqt --release --qmldir C:\Qt\Qt5.7.0\5.7\mingw53_32\qml MyApp.exe
        
        beeckscheB Offline
        beeckscheB Offline
        beecksche
        wrote on last edited by
        #3

        @Devopia53
        Thanks, that was it !

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

          Hi,

          AFAIK, that's the wrong solution. You are basically pulling in all of Qt's QML stuff rather than the one needed for your application.

          You should only need to path the path to the .qml files in your project sources.

          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
          • LorenzL Offline
            LorenzL Offline
            Lorenz
            wrote on last edited by Lorenz
            #5

            @SGaist you are right, but:

            In my experience, the windeployqt tool is rather buggy sometimes and does not always add all required .dlls. Just today, we stumbled over this bug: https://bugreports.qt.io/browse/QTBUG-54021

            @beecksche what we usually do is:

            • run the windeployqt tool
            • if the app doesn't start, we manually go over the imports in our app and compare them to the files that windeployqt added
            • we add missing stuff by hand

            note: it is helpful to have all imports in the main qml file of your app, since windeployqt sometimes seems to have troubles resolving imports from qml files in sub folders.

            Developer @ V-Play Engine - http://v-play.net/qt

            V-Play simplifies

            • Game Development with Qt
            • Mobile App Dev with Qt esp. iOS & Android

            What others say
            V-Play scored #1 in Cross-Platform App Development Tools Report - see why: https://goo.gl/rgp3rq

            beeckscheB 1 Reply Last reply
            2
            • LorenzL Lorenz

              @SGaist you are right, but:

              In my experience, the windeployqt tool is rather buggy sometimes and does not always add all required .dlls. Just today, we stumbled over this bug: https://bugreports.qt.io/browse/QTBUG-54021

              @beecksche what we usually do is:

              • run the windeployqt tool
              • if the app doesn't start, we manually go over the imports in our app and compare them to the files that windeployqt added
              • we add missing stuff by hand

              note: it is helpful to have all imports in the main qml file of your app, since windeployqt sometimes seems to have troubles resolving imports from qml files in sub folders.

              beeckscheB Offline
              beeckscheB Offline
              beecksche
              wrote on last edited by
              #6

              @Lorenz
              Today i had the same problem described in the bug.

              I installed an own message handler to get all the messages. There it says that one module is not defined/cannot be found.

              Thanks for the receipt!

              1 Reply Last reply
              0
              • M MarNem referenced this topic on
              • V Vitalii777 referenced this topic on

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved