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

Q_ENUM for sub classes does not work

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • 6.5.8, 6.8.1, 6.9.0 FF
    • 6.7.3
    • Core: Other
    • None
    • 4e4eef175 (dev), 44bf5566c (6.8), 2739e3219 (tqtc/lts-6.5)

    Description

      Hi,

      Q_ENUM gives compiler errors:

      struct BaseStruct
      {
        Q_GADGET
      public:
        enum Enum
        {
          Val1
        };
        Q_ENUM(Enum)  
        struct Internal1
        {
          Q_GADGET
        public:
          enum Enum2
          {
            Val2
          };
          Q_ENUM(Enum2)
        };
      };
      

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            sroeber Steffen Roeber
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes