I'd like to print a specific trigger of a task that I created , how can I do that in C++ using QT Framework , what is the best way ? also , what's the best way to create a dynamic scheduler with multiple tasks and have the ability to re开发者_如何学Gotrieve each task information?
To be able to manage task through a scheduler you should use the QProcess
class. Use one QProcess by task and connect your scheduler to QProcess signals (like started, error, etc.). You can to get the native pid of the process and stop it by sending the kill or terminate signal.
Regarding the scheduler, a set of timer should do the trick.
Hope that helps
精彩评论