Results 1 to 2 of 2

Thread: text field with default values

  1. #1
    Join Date
    Apr 2014
    Posts
    53
    Thanks
    9

    Default text field with default values

    Hi,
    I would like to know if there is a widget that would implement a textfield, and when the user types in it, a drop down list of previously typed values would appear (like when you query in Google), ordered by statistically most used values. And I also want to insert into that list 2 values at the top so, they always will appear as default values, even if the history of inputs is empty.
    Does such widget exists, or, what components should I use to create it myself ? With QML or C++ widgets, whatever is easier. My app s qml based.

    Thanks in advance.

  2. #2
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,536
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: text field with default values

    QComboBox in editable mode.

Similar Threads

  1. model and default columns values
    By m15ch4 in forum Qt Programming
    Replies: 0
    Last Post: 8th May 2011, 21:57
  2. Default values in QXmlSchemaValidator
    By mortalisk in forum Qt Programming
    Replies: 0
    Last Post: 3rd September 2010, 16:11
  3. How to QTableWidget default values on insertion?
    By RawArkanis in forum Qt Programming
    Replies: 1
    Last Post: 20th April 2010, 07:02
  4. Replies: 3
    Last Post: 26th February 2010, 22:37
  5. C++ and default values for functions
    By guestgulkan in forum General Programming
    Replies: 4
    Last Post: 2nd January 2007, 22: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.