PDA

View Full Version : QObject's information



cic
12th August 2013, 15:06
Hello all,

I would like to insert some debug information for every QEvent.
Therefore the QObject::notify() function was reimplemented.

Some information like object class name, signal name, connected slot, etc. are constructed here.
Since the program grows up, there would be mass of QEvents pass through, in which the information string built above
made the performance worse.

I wonder whether Qt has offered methods like a QObject Map in which developer can assign infomation to them. Then by traversing the map,
the information string can be achieved.

anda_skoa
12th August 2013, 15:55
You can store dynamic properties on any QObject using QObject::setProperty()

Cheers,
_