Important: Please read the Qt Code of Conduct -

QtWebkit on mac can't seem to load plugins

  • When I try to load anything that needs a plugin, I get:

    Error loading /Library/Internet Plug-Ins/Flash Player.plugin/Contents/MacOS/Flash Player: dlopen(/Library/Internet Plug-Ins/Flash Player.plugin/Contents/MacOS/Flash Player, 262): no suitable image found. Did find:
    /Library/Internet Plug-Ins/Flash Player.plugin/Contents/MacOS/Flash Player: no matching architecture in universal wrapper

    This seems to have been asked reasonably frequently over the last 2 years, but I haven't ever seen this issue resolved.

    Has anyone been able to use plugins on a mac with QtWebkit?

    This seems like a crazy basic question - surely there's an answer out there somewhere?

    int main(int argc, char *argv[])
    QApplication a(argc, argv);

    QWebSettings *defaultSettings = QWebSettings::globalSettings();
    defaultSettings->setAttribute(QWebSettings::JavascriptEnabled, true);
    defaultSettings->setAttribute(QWebSettings::PluginsEnabled, true);
    QWebView view;
    // Tester for plugins
    return a.exec();


  • The flash plugin on the mac is only available as 32bit version, there's no official 64bit release yet. It seems your application is compiled and run as 64 bit. Try to add this to your .pro file:

    CONFIG -= x86_64 ppc64
    CONFIG *= x86 ppc

    This removes both 64 bit version for Intel and PPC from the build and adds the two 32 bit versions.

  • This problem persists into 2013. I am replying here because this along with other posts still comes up in a google search for the message text.

    I resolved it by going through the list of errors and updating or deleting the named plug-ins.

    Some errors related to old plug-ins in ~/Library/Internet Plug-ins that I no longer used, and I simply deleted them.

    Some, like the Silverlight and Flip4Mac plug-ins, I got the latest versions and installed them and this eliminated the message.

Log in to reply