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

Combobox popup height is non-zero when the model is empty

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.8
    • None

    Description

      Steps:

      • Open the example attached
      • press "Ctrl + A" to output the popup height
      • Toggle the popupType
      • press "Ctrl + A" to output the popup height

       

      Create a combobox in Universal style and set the model to 0. Open the menu. The height is 1px when setting popupType to PopupWindow, and 0 when set to PopupItem.

       

      Failed test:

       

      FAIL!  : tst_controls::Universal::ComboBox::test_emptyPopupAfterModelCleared() Compared values are not the same
         Actual   (): 1
         Expected (): 0
         Loc: [/home/edc/dev/qt/src/dev/qtdeclarative/tests/auto/quickcontrols/controls/data/tst_combobox.qml(1815)]

      Attachments

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

        Activity

          People

            edcooke Ed Cooke
            edcooke Ed Cooke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes