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

As a user of Qt, I would like QMetaEnum's API to be more friendly towards QFlags and scoped enums

XMLWordPrintable

    • Icon: User Story User Story
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • None
    • Core: Object Model
    • None
    • 25
    • Foundation PM Staging

      It is currently very cumbersome to use QMetaEnum when the "enum" is a QFlags or a C++11 scoped enum, because neither of these convert to integral types, which is what QMetaEnum uses.

      Ideas range from simply a adding QFlags/scoped enum overloads to QMetaEnum, as well as creating a QTypedMetaEnum.

      Discuss, implement, test and document

      References:

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

            cnn Qt Core & Network
            mmutz Marc Mutz
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes