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

Details

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

    Description

      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:

      Attachments

        Issue Links

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

          Activity

            People

              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

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes