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

Action triggered callback has incorrect source when popupType is set to PopupWindow

XMLWordPrintable

      The following test fails in tst_action.qml:

      1: FAIL!  : tst_controls::Universal::Action::test_shared() Compared values are not the same
      1:    Actual   (): Button_QMLTYPE_30(0x60b2f0cffee0, "button")
      1:    Expected (): MenuItem_QMLTYPE_25(0x60b2f0a0fba0, "menuItem")
      1:    Loc: [/home/edc/dev/qt/src/dev/qtdeclarative/tests/auto/quickcontrols/controls/data/tst_action.qml(102)]

      It looks like the onTriggered callback does not provide the correct source object. Interestingly, on the second time the action is called, the source object is correct.

        For Gerrit Dashboard: QTBUG-126815
        # Subject Branch Project Status CR V

            edcooke Ed Cooke (Inactive)
            edcooke Ed Cooke (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes