Results 1 to 3 of 3

Thread: How to distribute a qt quick application to a computer without QT installed?

  1. #1
    Join Date
    Aug 2013
    Posts
    27
    Thanks
    3

    Question How to distribute a qt quick application to a computer without QT installed?

    Hi,
    I develops a Qt Quick application with QT5.3 , mingwin32. It runs OK on my computer after copy all Qt5XX.dll to work folder, please see my attached picture. But when I copy the folder to other computer without Qt installed, no window shows, and outputs bellow error message:
    Qt Code:
    1. QQmlApplicationEngine failed to load component
    2. qrc:///main.qml:2 module "QtQuick.Window" is not installed
    3. qrc:///main.qml:1 module "QtQuick" is not installed
    4. qrc:///main.qml:6 module "QtQuick.XmlListModel" is not installed
    5. qrc:///main.qml:5 module "QtQuick.Controls" is not installed
    6. qrc:///main.qml:4 module "QtQuick.Layouts" is not installed
    7. qrc:///main.qml:3 module "QtQuick.Dialogs" is not installed
    8. qrc:///main.qml:2 module "QtQuick.Window" is not installed
    9. qrc:///main.qml:1 module "QtQuick" is not installed
    10. qrc:///main.qml:6 module "QtQuick.XmlListModel" is not installed
    11. qrc:///main.qml:5 module "QtQuick.Controls" is not installed
    12. qrc:///main.qml:4 module "QtQuick.Layouts" is not installed
    13. qrc:///main.qml:3 module "QtQuick.Dialogs" is not installed
    14. qrc:///main.qml:2 module "QtQuick.Window" is not installed
    15. qrc:///main.qml:1 module "QtQuick" is not installed
    16. qrc:///main.qml:6 module "QtQuick.XmlListModel" is not installed
    17. qrc:///main.qml:5 module "QtQuick.Controls" is not installed
    18. qrc:///main.qml:4 module "QtQuick.Layouts" is not installed
    19. qrc:///main.qml:3 module "QtQuick.Dialogs" is not installed
    20. qrc:///main.qml:2 module "QtQuick.Window" is not installed
    21. qrc:///main.qml:1 module "QtQuick" is not installed
    22. qrc:///main.qml:6 module "QtQuick.XmlListModel" is not installed
    23. qrc:///main.qml:5 module "QtQuick.Controls" is not installed
    24. qrc:///main.qml:4 module "QtQuick.Layouts" is not installed
    25. qrc:///main.qml:3 module "QtQuick.Dialogs" is not installed
    26. qrc:///main.qml:2 module "QtQuick.Window" is not installed
    27. qrc:///main.qml:1 module "QtQuick" is not installed
    28. qrc:///main.qml:6 module "QtQuick.XmlListModel" is not installed
    29. qrc:///main.qml:5 module "QtQuick.Controls" is not installed
    30. qrc:///main.qml:4 module "QtQuick.Layouts" is not installed
    31. qrc:///main.qml:3 module "QtQuick.Dialogs" is not installed
    32. qrc:///main.qml:2 module "QtQuick.Window" is not installed
    33. qrc:///main.qml:1 module "QtQuick" is not installed
    34. qrc:///main.qml:6 module "QtQuick.XmlListModel" is not installed
    35. qrc:///main.qml:5 module "QtQuick.Controls" is not installed
    36. qrc:///main.qml:4 module "QtQuick.Layouts" is not installed
    37. qrc:///main.qml:3 module "QtQuick.Dialogs" is not installed
    To copy to clipboard, switch view to plain text mode 

    It seems that application do not know how to load qml modules. Another information is that the application developed by QWidget can run in this folder.
    What shall I do to tell application to look for modules in work folder?
    Attached Images Attached Images

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How to distribute a qt quick application to a computer without QT installed?

    You need to deploy the required modules with the application. They are located inside qml subdirectory of your Qt installation.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Aug 2013
    Posts
    27
    Thanks
    3

    Smile Re: How to distribute a qt quick application to a computer without QT installed?

    After I copy qml\xxx to workdir\xxx, it works. Great!

Similar Threads

  1. How to distribute my Qt Widget application .exe file to users?
    By mut in forum Installation and Deployment
    Replies: 2
    Last Post: 28th June 2014, 11:43
  2. Replies: 4
    Last Post: 26th September 2010, 15:01
  3. Replies: 2
    Last Post: 1st August 2007, 16:04
  4. Replies: 5
    Last Post: 15th June 2007, 23:08
  5. running Qt application on computer without Qt
    By vonCZ in forum Installation and Deployment
    Replies: 2
    Last Post: 30th May 2007, 16:36

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.