2013年9月22日星期日

[Android] Help ! ! Qt how to achieve monitoring function ? ? ? ? ? ?

Just wanted to fire one second every 0.5 seconds to automatically detect a function's return value is 0 ? ? ?
Jiji Ji ! ! ! Great God seeking guidance
------ Solution ------------------------------------- -------
you have 2 ways
1. your class inherits from QObject, and to achieve virtual void timerEvent (QTimerEvent * event), and then start when the call startTimer (500), in your judgment you timerEvent function in that return Value

2. Creating a QTimer object
QTimer * timer = new QTimer (this);
connect (timer, SIGNAL (timeout ()), this, SLOT (update ()));
timer-> start (500);

judgment in doing udpate function

PS: These help documentation has
------ eference --------------------------- ------------
seemingly use the timer ? Or function inside emit a signal out
------ eference --------------------------------- ------
with timer
------ eference ----------------------------- ----------


help documentation in English and none of them
----- - eference ---------------------------------------

  
help documentation in English    and none of them  

. . . . As a programmer, English is one of the more basic skills , how proficient is not required , at least be able to read about the meaning , it is not, do not understand what the word can also be translated ah

没有评论:

发表评论