Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Tree Text Completion In a QTextEdit
Forum Updated to NodeBB v4.3 + New Features

Tree Text Completion In a QTextEdit

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 346 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    tomkulaga
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved