[Qt-interest] Qt Webkit and Google Earth Plugin?
Luke Hill
freeflyhill at gmail.com
Wed Oct 5 07:24:49 CEST 2011
<Oliver.Knoll <at> comit.ch> writes:
>
> Hello,
>
> does the Google Earth Plugin work in Qt Webkit? I am currently trying to
display e.g.
>
> http://code.google.com/intl/de-DE/apis/earth/
>
> in my QWebView.
>
> Just after instantiating my QApplication object - and before anything else - I
do have:
>
> QWebSettings::globalSettings()->setAttribute(QWebSettings::PluginsEnabled,
true);
>
> This /does/ make a difference, because the Flash video on the site above
("Featured Video") plays fine!
> (Setting PluginsEnabled to false does indeed not load the Flash plugin).
>
> But unfortunatelly where the Google Earth is supposed to displayed I get a
static image, saying that
>
> "Your browser does not support the Google Earth Plugin
> Please try again with one of these browsers:
> Google Chrome 1.0+
> Internet Explorer 6+
> Firefox 2.0+
> Flock 1.0+"
>
> (The URL above does work on my Windows XP machine, in Firefox 3.6 and IE 7).
>
> Oh and just now I have installed Safari on Windows XP, and this browser
renders the *same* message! :( So
> apparently Google Earth Plugin does not support (Q)WebKit on Windows. Will
recompile my code on my Mac
> tonight and see whether that makes a difference: according to
> http://earth.google.com/intl/en/plugin/ Safari 3.1+ is at least supported on
Mac OS X (so maybe that
> plugin then also works with QtWebkit, at least on Mac)...
>
> But then again,
> http://code.google.com/intl/de-
DE/apis/earth/documentation/#installing_the_google_earth_plugin
> mentions that "Although the plugin and API may work correctly on other
browsers that support NPAPI with
> npruntime extensions, these browsers are not officially supported." (whatever
that means, I am not
> browser plugin expert). So maybe there are any tweaks how to make the plugin
work anyway with Qt Webkit?
> Where does Qt Webkit look for its plugins anyway (I am very new to that
class)? According to
> http://stackoverflow.com/questions/2139983/add-a-new-plugins-path-to-qtwebkit
they are
> "stored in the Mozilla Firefox plugins directory or the standard plugins
directories". So how is the
> "Mozilla Firefox plugin" directory located, where is the "standard plugin
directory" (the one like %
> QTDIR%/plugins? I did not see any subfolder like 'webkit' or the like.)?
>
> Any other experience? A Google search does not come up with much (except some
other guys asking the same
> question in Qt Forum etc.)
>
> Or does anyone know whether it is possible to remote-control Google Earth (the
application, not the
> plugin) on Mac, just like on Windows with the http://earth.google.com/comapi/
(which off course is
> "Windows only")? And apparently http://code.google.com/intl/de-
DE/apis/earth/documentation/
> (the "JavaScript API") is the way to go anyway, the COM API does not seem to
receive much love anymore...
>
> Thanks,
> Oliver
Oliver, any progress on this. I am also trying to embed Google Earth in a QT
desktop application. Any pointers on your solution if you have found one by now
would be appreciated. Thanks!
More information about the Qt-interest-old
mailing list