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

[QtQuickControls 1]: If QML ComboBox is closed through a timer (visible = false), the open popup is not closed

XMLWordPrintable

      If QML ComboBox is closed through a timer (comboBox.visible = false) while the popup is open, the popup is not closed.

      In controls 2 there is a workaround, setting focus = false in onVisibilityChanged slot of the ComboBox closes the popup. But this workaround doesn't work for controls 1.

      onVisibleChanged: {
          comboBox.focus = false
      }
      

      Possible workaround for controls 1 is to do:

      onVisibleChanged: {
          if (__popup.__popupVisible)
          __popup.__dismissAndDestroy();
      }
      

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            jussi_witick Jussi Witick
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes