Results 1 to 2 of 2

Thread: Editing and adding entries to a QComboBox

  1. #1
    Join Date
    Jan 2007
    Posts
    91
    Thanks
    21
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Editing and adding entries to a QComboBox

    I have a QComboBox with the setLineEdit set to a line edit control. I have set the editable flag for the combo box, I have set the InsertPolicy to InsertAtCurrent.

    How do I add/edit entries in the combo box.

    I can edit entries, but it doesn't stick. I press the Insert key, but nothing happens.

    I can't find any examples of manual editing of QComboBox elements.

    And, I don't know how to tell the control to allow me to add an item to the list.
    - BRC

  2. #2
    Join Date
    Jan 2007
    Posts
    91
    Thanks
    21
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: Editing and adding entries to a QComboBox

    I figured it out. I removed the QLineEdit control and then listened to the EditTtextChanged signal and fed that into the list control.

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.