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

moc: Q_PROPERTY attribute for auto-generated getters/setters/emitter

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 5.1.0
    • Component/s: Build tools: moc
    • Labels:
      None
    • Environment:

      N/A

    • Commits:
      9bbebb914422262b7b585b6d1dab9d21c4238c44

      Description

      It would be nice for an optional Qt Property attribute that would trigger Qt moc to auto-generate getters, setters and signal on chang. This would save a lot of boiler plate code. Specifically when using the QMetaObject system to implement ORM data models, such as in the QDjango project. Using macros is an alternate option, however since macro expansion occurs after moc it isn't a clean solution.

        Attachments

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

          Activity

            People

            Assignee:
            ogoffart Olivier Goffart (Woboq GmbH)
            Reporter:
            gosuperninja Tyler Conant
            Votes:
            5 Vote for this issue
            Watchers:
            10 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes