Re: [Knowit-users] Re: Questions about KnowIt

Frank Osterfeld <[email protected]> Mon, 5 Apr 2004 15:50:27 +0200
Newsgroups gmane.comp.kde.devel.knowit
Message-ID <[email protected]>
U had a closer look at QTextEdit and friends...

* Michal Rudolf [Mittwoch, 31.03.2004 23:26]:

> >I thought it would be cool if I could put links directly into the note
> > text and execute them by clicking (for example by Ctrl+left click). Win
> > apps like cuecards or keynote support this.
>
> Sure. It is really annoying for me, that QTextEdit already has almost all
> required functionality (internal links, tables etc.), but there is no
> access to it. There is no easy way to insert piece of HTML code to
> QTextEdit, although if it is inserted (f. e. table, image), you can edit it
> quite easily.

Yes, that's really annoying. Executing hyper links is possible, actually it's 
all implemented in QTextEdit, but disabled, the QTextEdit-friend QTextBrowser 
seems to be the only class which can override this.
Adding links seems only be possible with append() but not with insert()...

Maybe the only way to get better support for editing links, images, tables 
etc. is to take the QTextEdit code and create a modified QTextEdit with added 
support? I don't think any standard Qt widget offers what we need.
I asked on #kde-devel if anybody knows an application with a widget which 
combines editable rich text and hyper links, but nobody did.

Frank




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click