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

Support typeof and instanceof in QML

    XMLWordPrintable

Details

    Description

      You should be able to go:

      if (item instanceof "ListView")

      { ... }

      Alternatively a functionally equivalent way of discovering the "type" of an object should be supported.

      Attachments

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

        Activity

          People

            unseon.ryu Unseon Ryu
            aakenned Aaron Kennedy
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes