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

Q_ENUMS example makes use of Q_ENUM

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.13.2, 5.14.0 Alpha
    • 5.9.1
    • Documentation
    • None
    • e9190eda1a2b16bd6aa07cce4e00f302eeb3562e (qt/qtbase/5.13)

    Description

      I believe that this example is missing S:

        class MyClass : public QObject
        {
            Q_OBJECT
      
        public:
            MyClass(QObject *parent = 0);
            ~MyClass();
      
            enum Priority { High, Low, VeryHigh, VeryLow };
            Q_ENUM(Priority)
            void setPriority(Priority priority);
            Priority priority() const;
        };
      

      Attachments

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

        Activity

          People

            paulwicking Paul Wicking
            emdek MichaƂ Dutkiewicz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes