[Interest] Macro support with QTextEdit.

Bill Crocker william.crocker at analog.com
Fri Jan 8 23:40:05 CET 2016


Hello:

I am working on a WYSIWYG editor.
The user needs to be able to enter macros which render
specially on the screen. For the purpose of this conversation,
pretend they enter "$DATE" which displays as "8-JAN" on the screen.
They are not allowed to edit the "8-JAN" directly. If they act to
edit the "8-JAN", a widow would pop up where they can edit the "$DATE".
If they changed it to "$YEAR", "2016" would appear in the screen when
they are done. These macros would be interspersed with regular text.

How do I this using a QTextEdit widget in HTML mode
with QTextCursor etc.

Thanks.

Bill



More information about the Interest mailing list