Results 1 to 2 of 2

Thread: Multiple completion

  1. #1
    Join Date
    Feb 2008
    Posts
    40
    Thanks
    9
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Multiple completion

    There is cool completion functionality in Qt, which works very fine. I am looking, however, for a bit different kind of completions. I want to put some input into QLineEdit and keep completion suggestion even when I finish some word.

    Let me give an example. Let there be words 'one', 'two' and 'three' in completer. I have written 'th' then completed it to 'three' and then I put 'o' and I would like to get again suggestion 'one'. Is it achievable in Qt? Is there any clever way I could achieve this, without too much coding?

  2. #2
    Join Date
    Dec 2006
    Posts
    849
    Thanks
    6
    Thanked 163 Times in 151 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Multiple completion

    You have to intercept events/signals, detect word breaks and call a QCompleter instance yourself.

    HTH

Similar Threads

  1. Multiple project files in a single directory
    By jogeshwarakundi in forum Qt for Embedded and Mobile
    Replies: 5
    Last Post: 17th July 2008, 07:03
  2. Single QGLContext across multiple QGLWidgets
    By pseudosig in forum Qt Programming
    Replies: 2
    Last Post: 22nd June 2008, 23:13
  3. Replies: 1
    Last Post: 1st February 2008, 18:55
  4. how to corss compile for windows in Linux
    By safknw in forum Qt Programming
    Replies: 24
    Last Post: 13th May 2006, 05:23
  5. Replies: 25
    Last Post: 15th January 2006, 00:53

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.