Results 1 to 1 of 1

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

  1. #1
    Join Date
    Jun 2016
    Posts
    99
    Thanks
    18
    Thanked 1 Time in 1 Post
    Qt products
    Qt5
    Platforms
    Unix/X11

    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 21:18.

Similar Threads

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

Tags for this Thread

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.