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. How do not complete complete word by QCompleter?

How do not complete complete word by QCompleter?

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 1.7k Views
  • 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.
  • G Offline
    G Offline
    Gourmand
    wrote on last edited by
    #1

    I implemented word completion using "example":http://doc.trolltech.com/4.7/tools-customcompleter.html from Qt docs. All works fine except one issue: if the word is already complete - then QCompleter suggests it nevertheless. I want it to suggest only incomplete words.

    For example: if I typed "for" and possible matches are "for" and "forever" - now it suggests both matches. But I need it suggest only "forever". And if there are no possible incomplete words - do not suggest anything, no selection drop. I don't see how to turn this mode in QCompleter. Possibly it does not support this, does it?. Is that possible implement this by any other way? Do not suggest temporarily remove matching complete word from QCompleter list - this appears monstrously (this word should be added back after action).

    Any ideas?

    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