Thanks Wisota
You answer me to 'who more call my timerEvent' >> A subclass or superclass...
But If I'm sure that this event are only called by me .... can i use a code without timerid() check ? or maybe occur something unexpected ?
Thanks
Thanks Wisota
You answer me to 'who more call my timerEvent' >> A subclass or superclass...
But If I'm sure that this event are only called by me .... can i use a code without timerid() check ? or maybe occur something unexpected ?
Thanks
If you are sure then you don't need the check. But with Qt you can't be sure unless you are sure Qt libraries you use will never be changed.
I don't see a point in all this discussion. If you are looking for ways to make your application faster then you are looking in a wrong place, removing this check (which is probably inlined anyway) will save you less cpu cycles than the number of cpu cycles it takes to create the stack frame for the timerEvent() call. Don't look for ways to optimize highways, optimize small roads instead.
Bookmarks