Google Earth Plugin fails to load using QtWebKit

  • Hi All

    I have been trying to display Google Earth in My Qt application using QWebView. However, as soon as QWebView tries to load the webpage I get the message: Your Browser does not support the Google Earth plugin. So how do I make the plugin available? The page loads fine in Firefox. The plugin is on C:\Program Files (x86)\Google\Google Earth\plugin. Am using a Windows 7 machine. From reading around, I understand QtWebKit searches for the plugin in a standard location i.e. ./Application Data/Mozilla/plugins.I have tried copying the plugins over to this folder (Which is a slightly different path on Windows 7). Any help on how I can make the Google Earth plugin work on windows 7 in my application. The web page I am trying to load is: Example code I have is as follows
    QWebView *m_webview = new QWebView();
    QWebSettings *webSetting= m_webview->settings()->globalSettings();
    webSetting->setAttribute(QWebSettings::PluginsEnabled, true);


    Thanks in advance


  • I don't really understand JavaScript and so I can't help much, but I came across this link today and was at least able to get the plugin supported.

  • Okay, it's a little late but it works in QtWebView with some tricks.

    You have also to activate Javascript and the last thing is to set up your QWebKit or your window to tell them, that your browser is a specific Firefox one. I don't know the exact code (because I used it one year ago and didn't find it anymore ;) ), but you can also check that in QtWeb (

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.