Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Qt platform plugin "cocoa"

    Installation and Deployment
    3
    3
    790
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      G_kachou last edited by G_kachou

      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();
      
      }
      
      
      
      1 Reply Last reply Reply Quote 0
      • ?
        A Former User last edited by

        Hi, and welcome to the Qt forum! What's your Qt version number?

        1 Reply Last reply Reply Quote 0
        • SGaist
          SGaist Lifetime Qt Champion last edited by

          Hi and welcome to devnet,

          To add to @Wieland, are you getting that problem while running your application outside Qt Creator ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply Reply Quote 0
          • First post
            Last post