[Qt5-feedback] Merging QDeclarative specifics into core QMetaObject
Stefan Majewsky
stefan.majewsky at googlemail.com
Tue Jun 14 14:19:24 CEST 2011
Hi,
I was thinking about using QML to define internal datastructures (e.g.
as a more powerful alternative to QSettings). While doing so, I came
to wonder whether some of QtDeclarative's custom additions to the
metaobject framework should be merged into the main macros.
For example:
> Q_PROPERTY(QObject* foo READ foo WRITE setFoo NOTIFY fooChanged)
> Q_CLASSINFO("DefaultProperty", "foo")
could become:
> Q_PROPERTY(QObject* foo READ foo WRITE setFoo NOTIFY fooChanged DEFAULT)
It might also make sense to introduce a Q_LIST_PROPERTY() macro to
avoid most of the QDeclarativeListProperty boilerplate. Same for
grouped properties etc.
Greetings
Stefan
More information about the Qt5-feedback
mailing list