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

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

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • 5.1.0
    • None
    • Build tools: moc
    • None
    • N/A

    • 9bbebb914422262b7b585b6d1dab9d21c4238c44, 092374d1d (dev)

      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.

        For Gerrit Dashboard: QTBUG-16852
        # Subject Branch Project Status CR V

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes