Results 1 to 1 of 1

Thread: add a default value to comboBox that uses custom model

  1. #1
    Join Date
    Jun 2016
    Thanked 1 Time in 1 Post
    Qt products

    Default Re: add a default value to comboBox that uses custom model

    I have a comboBox that uses a custom model that pulls users from a hierarchical settings file that's store users for the application, by key-value pairs.

    I want to added a defualt vlaue to the comoboBox but not sure if this is possible....

    Qt Code:
    1. myModel.append({text: All_Users})
    2. currentIndex = find(All_Users)
    To copy to clipboard, switch view to plain text mode 

    Added after 28 minutes:

    update: okay scratching that idea and going a different route
    Last edited by jfinn88; 12th October 2016 at 20:18.

Similar Threads

  1. ComboBox default value
    By neda in forum Qt Quick
    Replies: 1
    Last Post: 5th April 2016, 09:40
  2. Replies: 9
    Last Post: 14th February 2013, 19:39
  3. Replies: 1
    Last Post: 3rd August 2009, 13:03
  4. Help ComboBox and Model
    By weepdoo in forum Qt Programming
    Replies: 2
    Last Post: 15th November 2008, 17:50
  5. Replies: 1
    Last Post: 16th November 2007, 12:06

Tags for this Thread


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.