help!!!problem about inherit from KHtmlParts

zdx3 zdx at chinabidding.com
Wed Sep 17 11:37:12 BST 2003


----- Original Message ----- 
From: "David Faure" <dfaure at klaralvdalens-datakonsult.se>
To: <kfm-devel at kde.org>
Cc: <zdx at chinabidding.com>
Sent: Wednesday, September 17, 2003 5:39 PM
Subject: Re: help!!!problem about inherit from KHtmlParts


On Wednesday 17 September 2003 04:25, zdx at chinabidding.com wrote:
> I inherit from KHtmlParts,
> do this:
> 
> begin( );
> write( "<html><body><img src="test.png">test img</body></html>" );
> end( );
> 
> khtmlparts auto load the img but
> my img in memory ,what can i do that i can re-implement the load method to
> load the img by myself?


>You have the image data in memory?
>Use a data: URL - see the posts from Leo Savernik on this list.


my problem is this:

i have a file that be compressed in especially format
i decompress it and fetch html code to a QString and fetch image that is used by html data to a unsigned char *buffer

when do this
begin( );
write( "<html><body><img src="test.png">test img</body></html>" );
end( );

KHtmlPart donnt know where to get the img data,my img data is in the unsigned char * buffer.

i try many methods but i am going and coming

-- 
David Faure -- faure at kde.org, dfaure at klaralvdalens-datakonsult.se
Qt/KDE/KOffice developer
Klarälvdalens Datakonsult AB, Platform-independent software solutions



More information about the kfm-devel mailing list