[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: showing a QImage in KHTML
From:       Nicolas Goutte <nicolasg () snafu ! de>
Date:       2003-12-10 14:51:29
[Download RAW message or body]

On Wednesday 10 December 2003 15:46, Robby Stephenson wrote:
> Hi,
>
> What's the best way to show a QImage inside a KHTMLPart? I figure I can
> write the QImage out to disk, and then point the HTML at that for an image
> source. Should I use a KTempFile?
>
> At first, I thought I could use the QMimeSourceFactory class, but it
> doesn't look like that is the way the KHTML part works. Is that correct?
> The image is too big to use a data: protocol URL.
>
> Is there a better way?

If it is only an image (no other content), you have KView. Possibly you could 
also use khtmlimage. I do not know which method is the best.

>
> Thanks,
> Robby

Have a nice day!

>
> >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to
> >> unsubscribe <<

 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic