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

      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.

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

            qtqmlteam Qt Qml Team User
            ulherman Ulf Hermann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes