Tree Text Completion In a QTextEdit



  • Hi,

    I wanted to merge the "TreeModelCompleter" example and the "CustomCompleter" examples, so I can have tree based completion in a QTextEdit sub class.

    Everything works if the seperator is an alphanumeric character, but when i set it to punctuation, it doesnt work.

    Each time i enter a punctuation mark, the QTextCursor in the CompeltingTextEdit seems to reset, and triggers:

    completionPrefix.length() < 3)
    

    Which bails the completion. I tried to also and if there with the seperator key, but it doesn't seems to work. does anyone have any suggestions? Is there a way to make QTextCursor not reset the anchor each time the Completion Seperator were to be entered?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.