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

Explicitly typed aliases in QML

    XMLWordPrintable

Details

    Description

      In the context of QDS (and also outside of that use case, but especially for QDS), it would be helpful if aliases could specif their desired type, instead of deducing it from the right hand side.

       

      Potential syntax (up to discussion):

      property alias int: anId.property

       

      This would help tooling which needs the actual type of the alias, e.g. to show the property editor

       

      Semantically, we still need to decide how this should behave  if the type of the RHS doesn't match the specified type of  the alias (e.g. hard error, coercion).

      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
            fabiankosmale Fabian Kosmale
            Vladimir Minenko Vladimir Minenko
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes