Google Earth Plugin fails to load using QtWebKit
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: http://earth-api-samples.googlecode.com/svn/trunk/demos/helloearth/index.html. Example code I have is as follows
QWebView *m_webview = new QWebView();
QWebSettings *webSetting= m_webview->settings()->globalSettings();
Thanks in advance
Okay, it's a little late but it works in QtWebView with some tricks.