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

QMetaEnum only works with ints

    XMLWordPrintable

Details

    • e7cb3cb04 (dev), d41b87e06 (dev)

    Description

      QMetaEnum's keyToValue, keysToValue and value functions all return ints. For my use case, each enum in my application has a globally-unique value, which requires the use of long long for each enum value. This unfortunately, does not allow me to use QMetaEnum to retrieve the corresponding enum value due to the lower range of int. I suggest changing the return type of these functions to qint64 to account for larger enums.

      Attachments

        Issue Links

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

          Activity

            People

              thiago Thiago Macieira
              fonzi337 Alfonso Chartier
              Vladimir Minenko Vladimir Minenko
              Alex Blasche Alex Blasche
              Votes:
              3 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes