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

List:       kde-devel
Subject:    Re: QTextEdit Question
From:       Nicolas Goutte <nicog () snafu ! de>
Date:       2002-12-12 15:18:48
[Download RAW message or body]

You know that QTextEdit can already do it if you use 
QTextEdit::setTextFormat(RichText)

But may be I do not understand correctly your problem. (But may be you should 
look at QTextEdit's source.)

Have a nice day/evening/night!

On Thursday 12 December 2002 14:43, Richard Stevens wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> I'd like to create a custom TextEditor that allows only a small subset of
> HTML entities. Those are things like bold and italic, enumerations and the
> different heading levels (<h1><h2>...). As far as I understand the
> documentation of QTextEdit, this should be possible to do with preparing a
> QStylesheet to be used with QTextEdit. Right?
>
> The biggest problem I have now is to figure out, how to start editing a
> <h1> section for example. Bold, italic and so on are easy but how would I
> use other tags? It would be okay to only be able to set <h1> for a
> selection.
>
> Thanks for any help or links.
>
> Richard
>
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.7 (GNU/Linux)
>
> iD8DBQE9+JJ4WQvEMJfcXlQRAruHAJ0e4ut6NO8Y0g542Ib7VXRnXqowDgCfSSXS
> U0tRQD9VsrYlu8ccZyBxN68=
> =A8py
> -----END PGP SIGNATURE-----
>
> >> 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