Details
-
Suggestion
-
Resolution: Fixed
-
P2: Important
-
5.0.0 Beta 1, 5.0.0 Beta 2, 5.4.0
-
None
-
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
- relates to
-
QTBUG-134106 As a user of Qt, I would like QMetaEnum's API to be more friendly towards QFlags and scoped enums
-
- Open
-
For Gerrit Dashboard: QTBUG-27451 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
466708,9 | QMetaType: Provide underlyingType for enums | dev | qt/qtbase | Status: MERGED | +2 | 0 |
581754,30 | QMetaEnum: add support for reading 64-bit flags and enums | dev | qt/qtbase | Status: MERGED | +2 | +1 |