Problems with Open-Source Downloads read https://www.qt.io/blog/problem-with-open-source-downloads and https://forum.qt.io/post/638946
way to show image sequence without using timer or thread
Try displaying a sequence of image with signal slot but without using timer and thread. Is there a good way to do.
Images are saved somewhere in a partition and are orderly named. I use OpenCV to read each and convert the one read into QImage and show it with QLabel. It is OK for a single image. What if I want to do so for all of them. I didn't find label item can emit signal while its content was changed.
but without using timer
use a QTimer, everything else will not work.
Hi, @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
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.
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.
JonB last edited by
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
QTimeryou can load/reload it with that, stop it, reset, do whatever to it.
Hi, @JonB. Thanks for your reply. Does that mean I can use several QTimer(s) con-currently for different task in my program.
Pl45m4 last edited by
What made you think, that there can be only one
QTimerin your whole program?
JonB last edited by
You may use as many
QTimers as you wish. (Probably within reason: I don't know what happens if you create 1,000,000 of them!)
@Pl45m4 . LOL. Do not know Qt very much. I have been thinking multi-Qtimer should be affected by each other.
@JonB . Thanks for this answer.