Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt platform plugin "cocoa"
Forum Updated to NodeBB v4.3 + New Features

Qt platform plugin "cocoa"

Scheduled Pinned Locked Moved Installation and Deployment
3 Posts 3 Posters 969 Views 2 Watching
  • 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 Offline
    G Offline
    G_kachou
    wrote on 6 Dec 2016, 17:27 last edited by G_kachou 12 Jun 2016, 17:28
    #1

    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
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on 6 Dec 2016, 18:03 last edited by
      #2

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

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 6 Dec 2016, 21:26 last edited by
        #3

        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
        0

        3/3

        6 Dec 2016, 21:26

        • Login

        • Login or register to search.
        3 out of 3
        • First post
          3/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved