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

As a developer of Qt, I need a way to mark new scoped enums as scoped-only for QML while leaving existing scoped enums alone for SC.

XMLWordPrintable

      Right now, I can only do that on a per-class basis, which creates massive problems when a legacy class gets new scoped enums: I either have to continue with unscoped enums, preventing my users from falling into the Pit of Success, or I have to cut SC and add the magic Q_CLASSINFO.

      If I could mark only new scoped enums as scoped-only for QML, I could leave legacy SC as-is and do the Right Thing for new enums.

      Since this comes up in every API review round, I think we need this rather urgently, but I'll leave it as P2 for now.

      References:

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

            qtqmlteam Qt Qml Team User
            mmutz Marc Mutz
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes