开发者

How To display Task Triggers in TaskScheduler?

开发者 https://www.devze.com 2023-02-14 02:39 出处:网络
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 ?

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

0

精彩评论

暂无评论...
验证码 换一张
取 消