Qt platform plugin "cocoa"
-
wrote on 6 Dec 2016, 17:27 last edited by G_kachou 12 Jun 2016, 17:28
Hello !
I am knew to Qt and trying to get my first UI to work !
However, when i try to run my code i get a "This application failed to start because it could not find or load the Qt platform plugin "cocoa"
in "". " error message.
The debugging process of Qt seems to indicate it comes from the Application but i dont know much more.I spent hours trying to fix it but nothing works. I am on MacOS.
#include "mainwindow.h" #include <QApplication> int main(int argc, char *argv[]) { QApplication a(argc, argv); MainWindow w; w.show(); return a.exec(); }
-
wrote on 6 Dec 2016, 18:03 last edited by
Hi, and welcome to the Qt forum! What's your Qt version number?
-
Hi and welcome to devnet,
To add to @Wieland, are you getting that problem while running your application outside Qt Creator ?
1/3