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. [SOLVED] Is their any Qt class which is equivalent to Unix Signal Handling
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Is their any Qt class which is equivalent to Unix Signal Handling

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 1.6k 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.
  • A Offline
    A Offline
    adnan
    wrote on last edited by
    #1

    I want my application to exit cleanly, even if it recieves SIGTERM or SIGKILL signal from O/S. It can be done easily using Unix Signal handling, but is their any Qt way of doing the same!

    1 Reply Last reply
    0
    • A Offline
      A Offline
      AcerExtensa
      wrote on last edited by
      #2

      Can QApplication::aboutToQuit do the job? Or take a look at "Calling Qt Functions From Unix Signal Handlers":http://doc.qt.digia.com/4.7/unix-signals.html

      God is Real unless explicitly declared as Integer.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        adnan
        wrote on last edited by
        #3

        Thanks a lot! A very good tutorial

        1 Reply Last reply
        0
        • P Offline
          P Offline
          Parthiv
          wrote on last edited by
          #4

          but through this we can not detect the pendrive. did you get it ?

          1 Reply Last reply
          0

          • Login

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