way to show image sequence without using timer or thread
-
@Make-it-GREAT-again said in way to show image sequence without using timer or thread:
but without using timer
use a QTimer, everything else will not work.
-
@Make-it-GREAT-again said in way to show image sequence without using timer or thread:
but without using timer
use a QTimer, everything else will not work.
wrote on 8 Jan 2021, 15:51 last edited byHi, @Christian-Ehrlicher . Thanks for reply at first. I cannot use QTimer for timer is an option of my project to limit running time of the entire application (or program).
I have just found a virtual function named PaintEvent. Is that possible to re-implement this to do my work like this
https://stackoverflow.com/questions/1242005/what-is-the-most-efficient-way-to-display-decoded-video-frames-in-qt?rq=1 -
@Make-it-GREAT-again said in way to show image sequence without using timer or thread:
I cannot use QTimer for timer is an option of my project to limit running time of the entire application
I don't understand what you mean.
-
@Make-it-GREAT-again said in way to show image sequence without using timer or thread:
I cannot use QTimer for timer is an option of my project to limit running time of the entire application
I don't understand what you mean.
wrote on 8 Jan 2021, 16:02 last edited by@Christian-Ehrlicher
I use a checkbox to choose using a timer for controlling the running time of my program. It means that the program should be automatically stopped in a time mannually speicified once the timer is selected via the checkbox. QTimer is simply for couting time down. -
@Christian-Ehrlicher
I use a checkbox to choose using a timer for controlling the running time of my program. It means that the program should be automatically stopped in a time mannually speicified once the timer is selected via the checkbox. QTimer is simply for couting time down.wrote on 8 Jan 2021, 16:27 last edited by@Make-it-GREAT-again said in way to show image sequence without using timer or thread:
It means that the program should be automatically stopped in a time mannually speicified once the timer is selected via the checkbox. QTimer is simply for couting time down.
Again, don't know what you mean here. Don't know what you think the restriction is, if you want to "manually specify a time" for a
QTimer
you can load/reload it with that, stop it, reset, do whatever to it. -
@Make-it-GREAT-again said in way to show image sequence without using timer or thread:
It means that the program should be automatically stopped in a time mannually speicified once the timer is selected via the checkbox. QTimer is simply for couting time down.
Again, don't know what you mean here. Don't know what you think the restriction is, if you want to "manually specify a time" for a
QTimer
you can load/reload it with that, stop it, reset, do whatever to it.wrote on 10 Jan 2021, 03:40 last edited byHi, @JonB. Thanks for your reply. Does that mean I can use several QTimer(s) con-currently for different task in my program.
-
Hi, @JonB. Thanks for your reply. Does that mean I can use several QTimer(s) con-currently for different task in my program.
wrote on 10 Jan 2021, 04:01 last edited byWhat made you think, that there can be only one
QTimer
in your whole program? -
Hi, @JonB. Thanks for your reply. Does that mean I can use several QTimer(s) con-currently for different task in my program.
wrote on 10 Jan 2021, 07:50 last edited by@Make-it-GREAT-again
You may use as manyQTimer
s as you wish. (Probably within reason: I don't know what happens if you create 1,000,000 of them!) -
What made you think, that there can be only one
QTimer
in your whole program?wrote on 11 Jan 2021, 02:19 last edited by@Pl45m4 . LOL. Do not know Qt very much. I have been thinking multi-Qtimer should be affected by each other.
-
@Make-it-GREAT-again
You may use as manyQTimer
s as you wish. (Probably within reason: I don't know what happens if you create 1,000,000 of them!)wrote on 11 Jan 2021, 02:29 last edited by@JonB . Thanks for this answer.
11/11