Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Implement application watchdog timer
Forum Updated to NodeBB v4.3 + New Features

Implement application watchdog timer

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 635 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dhu0504
    wrote on last edited by
    #1

    I need to implement application watch dog timer in Qt.
    When application is hanged, need to restart the application.
    How can i implement it in Qt.

    Any ideas, will be helpful.

    Thanks in advance

    K 1 Reply Last reply
    0
    • D dhu0504

      I need to implement application watch dog timer in Qt.
      When application is hanged, need to restart the application.
      How can i implement it in Qt.

      Any ideas, will be helpful.

      Thanks in advance

      K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      @dhu0504

      You can use QTimer to start on a regular basis your watch dog.

      One thing you need to be careful of is the event loop. When your application is blocking from some mal-function within a slot routine started by the same event loop, you have lost. The event loop will have no chance to execute your watch dog event.

      Either you are using an additional thread or an external application with some communication between those applications or other means to track the state of the application.

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      3

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved