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

Add type checking to QML

    XMLWordPrintable

Details

    Description

      JS might not have types, but QML does. It would be nice to have a Qt.instanceOf function so that you can check types. Note that this would operate on QML types, so Foo.qml (with contents Rectangle

      {...}

      ) would be of type Foo and Rectangle (since this is effectively QML inheritance for components).

      Attachments

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

        Activity

          People

            w00t Robin Burchell
            aalpert-nokia Alan Alpert (closed Nokia identity) (Inactive)
            Votes:
            7 Vote for this issue
            Watchers:
            13 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes