Results 1 to 9 of 9

Thread: How to change completion rule of QCompleter

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #8
    Join Date
    Sep 2009
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: How to change completion rule of QCompleter

    After a lot of studying up on how this works, I've finally figured it out. I've implemented my own version as well, but I have a question.

    My problem is that when the first letter entered into the editable combobox is actually the first letter of an entry, that entry is automatically selected. This bypasses completion of a single letter.

    For example. The list is:
    chicken broth
    cinnamon
    boneless chicken breast

    I want "c" to show all of these as possible completions. However, "c" will cause the combobox to select "chicken broth" instead. I've looked, but I can't figure out how to disable this behavior. Any suggestions?

    Thanks
    Bill

    edit: btw, hitting "c" will make the edittext read "chicken broth." And hitting backspace will remove all but the "c." Then it completes like i want it to. Obviously, I don't want to have to hit backspace every time.
    Last edited by jungle; 26th September 2009 at 21:41.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.