The problem is that when I use QWebView load the html file,the Google earth plug-in post the message that the browser is not support Google Earth plug-in.Because I have successfully make it in VB.NET,C# and MFC,but my boss not allow me to use these approach and force me to use Qt. So the only way I can think out is to use ActiveX control in Qt application.In MFC program i do it like this:
DISP_FUNCTION(CVirtualEarthView, "winMessage", OnWinMessage, VT_EMPTY, VTS_BSTR)
In c# like this :
private System.Windows.Forms.WebBrowser wndWebView;
this.wndWebView.ObjectForScripting = this;
public void Msg(sting)
but when i use the ActiveX control of Microsoft web Browser to instead QWebView,i really don't know how to do it ,so is there any one can give me some help?
[EDIT: code formatting, please wrap in @-tags, Volker]
Have you tried to stick to WebKit and just fake the user agent?
Thank edit，it's really a beautiful presentation of code,thank you for your tip!
And Lukas can you give me something more detailed? thanks.
What about your means "fake the agent"? thanks
[quote author="Lukas Geyer" date="1319817179"]Have you tried to stick to WebKit and just fake the user agent?[/quote]