Qt timer timeout
Hi I have a main event loop in Qt application. If at any point , I create a qtimer object and connect it's timeout signal to a slot called ABC. (Code Line number assume as 100) Next line of code is to start it with interval as 100 ms and set it as one shot.(Code line 101) Some basic Computation which is independent of qt (Code line 102) Some code which depends on Qt (code line 103) In this regard , I have a question as below: Question 1 : When slot ABC is executed ? As soon as line 100 is hit ? Obviously no if qt is busy. But yes if qt action is not busy. Is this true ? Question 2 : What is the need of set interval and start it with 100 ms.? Is this time allowed to complete the ABC slot or 100 ms is the time it will wait to start executing ABC slot ? Question 3: what ever is the case of 100 ms in Questio 2, will entire main code is blocked at line 102 or 103 or it will be ended irrespective of waiting for completion of ABC slot ?