[Qt-interest] Get notification of QObject property changes?

André Somers andre at familiesomers.nl
Thu Jul 30 22:14:29 CEST 2009


Hi,

 

I was wondering if it is possible to get some kind of notification from the
Qt (meta) object system that properties on a monitored QObject have changed?
While digging in the documentation, I stumbled on
QMetaProperty::notifySignal and the NOTIFY keyword for the Q_PROPERTY macro
that allows you to define a signal to be emitted at property change, but it
seems I will have to define this in advance. I really would like to somehow
monitor QObjects without specifically instrumenting these objects in advance
at design time. Is there a way I can set the signal afterwards, perhaps
through Qt’s introspection methods? Is there perhaps some general signal
that I can have a QObject emit on any property change, or some other hook I
can use?

 

Thanks,

 

André

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090730/9726180d/attachment.html 


More information about the Qt-interest-old mailing list