How to solve the “no Qt platform plugin could be initialized” problem?

前端 未结 1 1204
庸人自扰
庸人自扰 2021-01-28 09:02

I\'m trying to run a simple template in release mode on Visual Studio with the Qt extension. So far I\'ve always been running projects in debug mode (never had trouble)

1条回答
  •  闹比i
    闹比i (楼主)
    2021-01-28 09:27

    See if this helps.

    Are you trying to start the program by double clicking the .exe ? I tried to reproduce it:

    • build a simple project in release mode
    • run windeployqt ... and delete the generated folder ./platforms
    • double click on .exe to run it.

    and prompts the error message you got.

    0 讨论(0)
提交回复
热议问题