Details

    • Technical task
    • Resolution: Unresolved
    • P3: Somewhat important
    • 6.9
    • QML: Compiler

    Description

      Currently, only generate_As() does QMetaObject::cast() and the special conversion of matching type to either the type itself or undefined.

      While the latter is indeed quite specific to the "as" operation, using QMetaObject::cast() could be done to downcast any QObject-based type in any conversion.

      Furthermore, if we can statically prove that the "as" operation doesn't do anything because the source type already inherits the target type, we don't have to generate any code at all.

      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
            ulherman Ulf Hermann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes