[Qt-interest] anyone gotten QWebPage::createPlugin() to work?

Paul Miller paul at fxtech.com
Fri May 8 15:56:42 CEST 2009


Paul Miller wrote:
> Thanks Tony. Actually the other method DOES appear to work. But there 
> are two problems:
> 
> 1. Any HTML *after* my object element doesn't appear. For example, with 
> this HTML:
> 
> <H1>test</H1>
> <object type='application/x-qt-plugin' classid='test' width='100' 
> height='30'/>
> <h2>test2</h2>
> 
> I see "test" and the custom widget, but not "test2".

Well, if I stick my <object> element inside a pair of paragraph tags 
then it works. So I guess I was just using <object> wrong. One problem down!

> 2. When sent to a PrintPreviewDialog, the custom widget is not displayed 
> in the preview, nor is it actually printed.
> 
> I'm wondering if I need to do something special to the custom widgets to 
> get them to print.

This is still a problem. I suspect it's not working because the QWebPage 
being used for printing is not attached to a view.

-- 
Paul Miller | paul at fxtech.com | www.fxtech.com | Got Tivo?




More information about the Qt-interest-old mailing list