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

[REG 6.6 → 6.7] Faulty behavior of instanceof when multipe QML engines are used

XMLWordPrintable

    • d0e16e3f6 (dev), ef57b8798 (6.7)

      See the minimal example in https://invent.kde.org/nicolasfella/qml-test/-/tree/instanceof

      "actions instanceof Comps.Action" should yield true, but is false.

      When commenting out the c2 QML engine in main.cpp it works as expected.

      When commenting out the qmlRegisterType for Action.qml it works as expected.

      It works as expected in Qt 6.6

      qtbase 33b4c2d4af90d255b59ac79175c145f0e3299915

      qtdeclarative 1dcd94caa6ce0b73ddfff1a258d3c5fc557964fe

      This causes https://bugs.kde.org/show_bug.cgi?id=479770 and https://bugs.kde.org/show_bug.cgi?id=479775 because the instanceof check in https://invent.kde.org/frameworks/kirigami/-/blob/master/src/controls/private/PrivateActionToolButton.qml#L27 is yielding false

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

            ulherman Ulf Hermann
            nicolasfella Nicolas Fella
            Votes:
            3 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes