MSVC 2017 after running windeployqt.exe application fails to launch without stating any errors

  • Hello all,

    I am new to QT framework.

    I have installed Qt framework with version 5.11.2 with MSVC 2017 64 bit

    I have created a simple Qt Quick Application with Text displaying Hello World.

    I run the app within the qt creator everything works fine.

    I went to the project files and found the release and the debug folder. I have used the following command.

    windeployqt.exe demo.exe

    Where demo is the executable file for the project.

    For both release and the debug versions. The dependencies are copied to the project folder. However, the application fails to launch with no errors.

    Any suggestions would be really appreciated.

  • Qt Champions 2018

    Hi @Gurminder,

    You need to pass --qmldir <path> for QtQuick applications. Please see:

    That page also gives some hints for debugging the deployed app in case it does not work.


  • Thank you for the response!

    I have used the following command as you have suggested:

    windeployqt --qmldir C:\Qt\5.11.2\msvc2017_64\qml C:\Users\USERNAME\Documents\build-Madara-Desktop_Qt_5_11_2_MSVC2017_64bit-Release\release\Madara.exe

    However there is not change in the behavior, it still does not show any output.

  • Lifetime Qt Champion


    The --qmldir path should be the one from your project, so everything that it currently needs can be deployed.

  • Moderators

    in case you are testing the deployment on another machine you need to make sure to also deploy/install the corresponding msvc2017 runtime components.
    But i would expect an error dialog in this case.

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.