cic
12th August 2013, 14: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.
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.