Hi there, I was testing the demo browser that came in latest QT 4.4 for Windows snapshot (20080404). I created a very simple qtplugin.html page containing the code proposed by Benjamin Meyer in this post: http://labs.trolltech.com/blogs/category/labs/internet/webkit/
- qtplugin.html code (I've also added an ordinary image on it so that I could compare the behaviour of an image against the behaviour of the qt plugin): <html> <body> Image:<br/> <img src=" http://labs.trolltech.com/skins/trolltech_labs/categories/internet.png" width="80" height="80"/> <br/> QT progress bar: <br/> <object type="application/x-qt-plugin" classid="QProgressBar" name="progressbar" height=30></object> <script> function display(){ if (++document.progressbar.value != 100) setTimeout("display()", 50) } display(); </script> </body> </html> This code works fine, the demo browser loads it and displays the image and, under it, a nice QProgressBar embedded as a QT plugin inside the web page. The problem is: if I embed this webpage into another one using an IFrame, the embedded QProgessBar will not appear in the correct position inside the main page, although the rest of the IFrame does it. For example: - iframe.html code: <html> <head> <div> Plugin test within an iframe: </div> <div style="float:right;"> <IFRAME SRC="/qtplugin.html" FRAMEBORDER="0" width="100%" height="100%" ></IFRAME> </div> </body> </html> Now, the IFrame inside this page will try to load qtplugin.html to the right side of the page. The image appears fine in the demo browser, in the right part of the screen. But the progress bar appears in the left part of the screen, that is, outside of its parent IFrame. Anyone could confirm if this also occurs to you? Another thing: when I try to print preview the qtplugin.html page, the progressbar doesn't show, only the text and the image. Maybe because the plugins printing functions are still not implemented? Cheers, Beto
