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

QMetaEnum only works with ints

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.0.0 Beta 1, 5.0.0 Beta 2, 5.4.0
    • None
    • e7cb3cb04 (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

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

        Activity

          People

            cnn Qt Core & Network
            fonzi337 Alfonso Chartier
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            3 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes