Results 1 to 2 of 2

Thread: Inheriting from QCompleter or something diferent

  1. #1
    Join Date
    Oct 2008
    Posts
    306
    Qt products
    Qt5
    Platforms
    Windows
    Thanks
    6
    Thanked 9 Times in 8 Posts

    Default Inheriting from QCompleter or something diferent

    Can I change QCompleter::completionModel() to use a model I populate according to my calculations on what are matches?
    I want to use fuzzy completion, but using a qlistview has been hard. Is there an easier way?

    EDIT: Ok, I can set the model, but I want all the items inside the model to be shown, can I subclass it and change the classes behavior ?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Inheriting from QCompleter or something diferent

    QCompleter uses filtering to do its job. If you don't want filtering, don't use QCompleter but rather provide your own completing component.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Add item to diferent listbox on loop
    By ShapeShiftme in forum Qt Programming
    Replies: 3
    Last Post: 21st May 2012, 16:17
  2. Inheriting
    By tuxit in forum Qt Programming
    Replies: 4
    Last Post: 13th August 2011, 12:28
  3. Replies: 2
    Last Post: 24th March 2010, 10:31
  4. Replies: 1
    Last Post: 12th October 2008, 08:21
  5. Inheriting QListViewItem
    By ct in forum Newbie
    Replies: 1
    Last Post: 17th March 2006, 05:52

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.