Hi, Holger,
I've noticed that, in the latest snapshot, the IFrame issue is already
fixed: the qt-plugin progress bar appears to the right of the page, where it
belongs to, inside its IFrame. Nice!
However, there's still an issue with the scrolling: if the Web page is big
enough, such that the scroll bars appear, the qt-plugin object scrolling
dont work well (I'm not talking about pages with IFrames anymore).
For example, if you use the demo browser to open the following simple HTML
page, and resize the browser in such way that the scroll bars appear, you
will notice such behaviour, specially when the plugin object is supposed to
disappear from the current page view due to scrolling:
<html>
<body>
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>
<br/>
Image:<br/>
<img src="
http://labs.trolltech.com/skins/trolltech_labs/categories/internet.png"
width="80" height="80"/>
<br/>
Image:<br/>
<img src="
http://labs.trolltech.com/skins/trolltech_labs/categories/internet.png"
width="80" height="80"/>
<br/>
Image:<br/>
<img src="
http://labs.trolltech.com/skins/trolltech_labs/categories/internet.png"
width="80" height="80"/>
<br/>
Image:<br/>
<img src="
http://labs.trolltech.com/skins/trolltech_labs/categories/internet.png"
width="80" height="80"/>
<br/>
Image:<br/>
<img src="
http://labs.trolltech.com/skins/trolltech_labs/categories/internet.png"
width="80" height="80"/>
<br/>
Image:<br/>
<img src="
http://labs.trolltech.com/skins/trolltech_labs/categories/internet.png"
width="80" height="80"/>
<br/>
Image:<br/>
<img src="
http://labs.trolltech.com/skins/trolltech_labs/categories/internet.png"
width="80" height="80"/>
</body>
</html>
The other question is: does anyone know why the qt-plugin object does not
appear when we use the print preview and print options? Is it not properly
rendered by those functions?
Cheers,
Beto
On Mon, Apr 7, 2008 at 5:33 PM, Holger Freyther <[EMAIL PROTECTED]> wrote:
> On Friday 04 April 2008 16:58:47 Beto Boullosa wrote:
>
> > 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?
> >
>
> I can confirm this. The issue is that in FrameLoaderClientQt::createPlugin
> we
> set the QWebView (or any other view) as parent of the QWidget and in
> WebCore::Widget::setFrameGeometry we simply call QWidget::setGeometry.
>
> The issue is: One has to convert the rect from the frame geometry to the
> one
> of the containing window. Let me see what is breaking when I do this...
>
>
> z.
>
>