Hi all, 
The problem is that I must specify its properties in the object screen (such as 
screen resolution, color depth, etc.), And 
the available methods webView.page().mainFrame().evaluateJavaScript() and 
webView.page().mainFrame(). 
addToJavaScriptWindowObject() do not make it. I tried to substitute for 
evaluateJavaScript():

String js = "var screen = new Object; " +
          "screen.height = " + this.resolHeight + "; " +
          "screen.width = " + this.resolWidth +"; " +
          "screen.colorDepth = " + this.resolColorDepth + "; ";

My addToJavaScriptWindowObject() method worked in the slot signal 
javaScriptWindowObjectCleared of frame:

QObject obj = new QObject();
obj.setProperty("height", "800");
this._webView.page().mainFrame().addToJavaScriptWindowObject("screen", obj);

Not work, anyway all the properties of the object Screen are system, but not 
those that I install.
_______________________________________________
Qt-jambi-interest mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest

Reply via email to