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

Flags declared with Q_FLAG macro seem to be not properly handled by Q_PROPERTY

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.7.0
    • Build tools: moc
    • None

    Description

      In my class I have declared a flag field with Q_FLAG macro.
      If I make a Q_PROPERTY for the flag to access it, compilation fails with errors in moc_*.cpp file (tested with VS 2015 compiler).
      If i remove Q_PROPERTY compilation goes successfully.
      The test project example is attached.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            aleksej.penkov Aleksej Penkov
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes