Results 1 to 2 of 2

Thread: QCompleter + SQL

  1. #1
    Join Date
    Aug 2012
    Posts
    2
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default QCompleter + SQL

    hi Qt community
    i'm looking for the way of implementing dynamic QCompleter.
    let me explain what i need
    i have a phonebook table (in MySQL) with `name`,`phoneNumbers` columns and it contains about 30,000 records (so i can't simply use QCompleter with a QStringList or something like that).
    so, i need a textbox that send a query to the database (with textchanged signal for example) and probably a code that updates QCompleter with the query's result and shows the suggestions(like AJAX completers in the web).
    example:
    1.user type key "s" into the textbox.
    2.a query "SELECT blablabla WHERE LIKE %".(only records starting with the s character)
    3.textbox shows the suggestions.("stan","smith","steve","...")
    4.done

    and after all, my QLineEdit is in the custom ItemView table,so i can't use subclassed QLineEdit.

    thanks

  2. #2
    Join Date
    Aug 2012
    Posts
    2
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QCompleter + SQL

    any ideas after 3days ?

Similar Threads

  1. QCompleter + QPllainTextEdit
    By Fallen_ in forum Qt Programming
    Replies: 0
    Last Post: 9th April 2011, 19:24
  2. Qcompleter
    By wambagilles in forum Qt Programming
    Replies: 7
    Last Post: 6th April 2011, 08:14
  3. QCompleter Help
    By shinegun in forum Qt Programming
    Replies: 0
    Last Post: 2nd September 2010, 13:26
  4. Controlling QCompleter's pop-up
    By dthh in forum Qt Programming
    Replies: 1
    Last Post: 27th August 2010, 01:19
  5. Replies: 1
    Last Post: 12th October 2008, 08:21

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.