[Qt-interest] auto closing xml tags

Nesbitt none at none.no
Sun Aug 22 22:39:18 CEST 2010


Hi

I am using QTextEdit as xml editor. I'd like to implement auto closing 
tags. 

For example when user types <tag1 arg1="val1"> QTextEdit should insert 
</tag1> after cursor.

I've read QCompleter docs and as I understood it I cannot use it because 
there is no list of valid words (every string could be a tag name). 

What is the best way to do this?

Thanks for your help.

Nesbitt



More information about the Qt-interest-old mailing list