[Gambas-devel] Feature request for TextView
MV
gambas at ...538...
Sat Dec 16 19:27:13 CET 2006
Hello,
While toying around various widgets, I noticed what seems to be a gap between
WebBrowser and TextView : in the webbrowser component, you can display images
with an URL (eventually pointing at the local FS), and in a TextView you can
only display images out of the local FS by supplying a hard link in the <img
src=""> tag. But unless I'm making a mistake, there's no way to supply an
image from memory to neither, and WebBrowser won't even display a page out of
a String.
I tried to look at the code, but I don't really know C++ nor Qt. What I
understood is TextView can fetch external references embedded into a document
from a MimeSourceFactory call, and that you can provide the default factory
with "handles" on memory stored images for future reference.
So I wondered if it would be extremely difficult to add any Image declared
with a name to the default MimeSourceFactory, so that a trivial rewrite of
the String holding the html-like text would point to the Image in memory,
instead of requiring the use of a local disk cache ?
Hope I was clear enough,
--
Manuel Viet
More information about the Devel
mailing list