Results 1 to 4 of 4

Thread: How to programmatically change the Index of comboBox using QStandardItemModel

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2017
    Posts
    23
    Thanks
    8
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default How to programmatically change the Index of comboBox using QStandardItemModel

    How to use the QStandardItemModel :: setData function to set the current value for a combobox that is found in a certain cell for example at index (0,0) and call the ComboBoxItemDelegate :: setModelData function.
    I know that ComboBoxItemDelegate :: setModelData function is called when an item is selected from the combo box but my problem is that ComboBoxItemDelegate :: setModelData function is not called by calling the combobox::setData. So i want to call combobox::setData or (any other function that) programatically that will call ComboBoxItemDelegate :: setModelData
    Last edited by Ahmed Abdellatif; 31st October 2018 at 20:06.

Similar Threads

  1. Replies: 0
    Last Post: 31st October 2018, 00:04
  2. How to change run configurations programmatically?
    By rakeshthp in forum Qt Programming
    Replies: 1
    Last Post: 4th December 2015, 15:25
  3. Replies: 5
    Last Post: 3rd February 2015, 11:35
  4. How to get index of a combobox delegate selection
    By vieraci in forum Qt Programming
    Replies: 12
    Last Post: 21st July 2009, 16:37
  5. ComboBox Completer Index Problem
    By majatu in forum Qt Programming
    Replies: 3
    Last Post: 7th June 2009, 14:30

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.