Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-63752

Changing the line edit of a combo box in a table view delegate commits prematurely

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.9.0
    • Widgets: Itemviews
    • None

    Description

      Setting a new line edit for an editable combo box when used as a delegate editor for a table view value, commits before the user can select anything.

      The reason seems to be that when the old line edit is deleted a focus event causes the editor to commit.

      A workaround can be removing the delegate's events filter for the combo box during the change.

      See the demo showcasing both a working and a non-working case.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            richard Richard Moe Gustavsen
            jimmytaker jimmytaker
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes