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
----- - eference ---------------------------------------
help documentation in English
. . . . 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
没有评论:
发表评论