no qt platform plugin could be initialized



  • Hello,

    After the installation of my Qt application on other computer (windows 10),
    I got this error when I start the app

    this application failed to start because no qt platform plugin could be initialized
    

  • Qt Champions 2018

    @aminemaar Did you deploy your app properly? You can use windeployqt tool for that.
    Also how did you "install" your app?
    https://doc.qt.io/qt-5/windows-deployment.html



  • @jsulm yes I use the windeploy tool, this is what I taped

    windeployqt --release --qmldir  C:\Qt\Qt5.12.1\5.12.1\msvc2017_64\qml   E:\projetsQT\build-Diagbox-Desktop_Qt_5_12_1_MSVC2017_64bit-Release\release\Diagbox.exe
    

    But the app still not working on other computer


  • Lifetime Qt Champion

    Hi,

    --qmldir wants the path to your project qml files.


  • Banned

    This post is deleted!


  • thank you @SGaist :) but
    why when i start the app on other computer (without qt framework installation) i got those erros in the log file

    2019-03-28 09:12:13.772 DBG default: hello
    2019-03-28 09:12:13.850 WRN default: Qt WebEngine ICU data not found at C:/Qt/Qt5.12.1/5.12.1/msvc2017_64/resources. Trying parent directory...
    2019-03-28 09:12:13.850 WRN default: Qt WebEngine ICU data not found at C:/Qt/Qt5.12.1/5.12.1/msvc2017_64. Trying application directory...
    2019-03-28 09:12:13.850 WRN default: Qt WebEngine ICU data not found at C:/Users/DBX/Desktop/Nouveau dossier/release. Trying fallback directory... The application MAY NOT work.
    2019-03-28 09:12:13.850 WRN default: Installed Qt WebEngine locales directory not found at location C:/Qt/Qt5.12.1/5.12.1/msvc2017_64/translations\qtwebengine_locales. Trying application directory...
    2019-03-28 09:12:13.850 WRN default: Qt WebEngine locales directory not found at location C:/Users/DBX/Desktop/Nouveau dossier/release\qtwebengine_locales. Trying fallback directory... Translations MAY NOT not be correct.
    
    


  • I solved it by adding the ressources files in C:\Qt\Qt5.12.1\5.12.1\msvc2017_64\resources
    to the release folder beside app.exe


Log in to reply
 

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