This application failed to start because it could not find or load the Qt platform plugin “cocoa”

后端 未结 4 628
北荒
北荒 2020-12-17 07:30

I think I did everything I could in the last 20 hours, but nothing seems to work. My app is running and working -- just as it should -- the only problem I have is that I can

4条回答
  •  忘掉有多难
    2020-12-17 08:27

    I had this problem in the context of just starting a Qt Widgets app from Qt Creator.

    What helped me was to set the variable QT_PLUGIN_PATH to the value /plugins (where is the absolute path to the folder in the Qt directory containing, among others, bin, doc, include, lib and of course plugins).

    This probably did not fix the root cause of the problem but it was a quick fix that's working fine so far.

提交回复
热议问题