Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Deploying qml application



  • Hello everyone! I have a proplem to deploy c++ application wich contains qml. I use Windows 7 and Qt 5.14.2. My application works well from QT Creator.

    1. I've successfully run windeployqt to gather libraries my app needs: db78ee6e-b617-4eaf-a82d-83bc06725aba-image.png
    2. After that I run my new shiny .exe file and it works well if following line (underlined with red) is commented
      0db8958e-2ad2-4173-840f-30061e7bc36d-image.png
    3. But if it's uncommented, I doubleclick on .exe file and nothing happenes, it just quickly flashes out in a task manager for 1-2 sec.
    4. .qml file is simpliest and its content can't cause problems. It seems Qt can't see qml import files. 55b4f9a9-1121-4eb8-be0d-6ec12f007ae0-image.png
      I'd be gratefull for any help! Cos I feel I don't wanna dig deeper and I loose my time.

    Afterwords. Dependency walker shows plenty of mistakes even if .exe works properly (that problematic qml line commented). 6ef41472-f452-4179-adfe-4c987c087890-image.png
    cqtdeployer.exe doesn't work for me at all, it throws an error message about "entry point not found in Qt5Core.dll"
    e52cb899-6c79-48a3-8904-a3c11c37a93e-image.png



  • The problem gone when I added .qml to resources. Following picture shows it.8b4a4aa9-f48b-47de-99b6-1d6dcbc395b3-image.png



  • The problem gone when I added .qml to resources. Following picture shows it.8b4a4aa9-f48b-47de-99b6-1d6dcbc395b3-image.png


Log in to reply