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

[Reg 6.8 -> 6.9] QML 'instanceof' doesn't work with selectors

    XMLWordPrintable

Details

    • All

    Description

      If you use custom extraSelectors than in Qt 6.9+ you can't call 'instanceof' on such types - the result is always false. It worked well before in Qt 6.7-6.8.

       

      I'm attaching an example with a test SelectorObject. If you launch it you'll see text "bad" for any Qt 6.9+ version. If you comment line 13 in main.cpp where 'test' extraSelector is setup than everything works as it should be - 'good'.

      Attachments

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

        Activity

          People

            qtqmlteam Qt Qml Team User
            ncuxer Sergey Gavrushkin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes