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

Handle an enum value of -1 correctly

    XMLWordPrintable

Details

    • 55faad4873a9409bb1b33a10da7329d13a95aff9

    Description

      Exposing an enum to QML where a named value == -1 is invalid, at least for Qt, as QMetaObject::indexOfEnumerator returns -1 for a value that was not found. This ultimately gives a value of undefined.
      Spin-off from QTBUG-21672.

      Attachments

        For Gerrit Dashboard: QTBUG-21679
        # Subject Branch Project Status CR V

        Activity

          People

            brasser Michael Brasser (closed Nokia identity) (Inactive)
            dajansen Damian Jansen (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes