Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Unsolved How do i make my Qt GUI application pop up when i hit shut down button in ubuntu 14.04?

    General and Desktop
    3
    3
    559
    Loading More Posts
    • 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.
    • V
      vIJI last edited by

      Hi,

      Im trying to pop up my application whenever i hit shut down button in ubuntu...can anybody help me with this please?
      I'hv no idea......how to start

      Any help is appreciated..
      Thank you

      1 Reply Last reply Reply Quote 0
      • ValentinMichelet
        ValentinMichelet last edited by

        Hi,

        I'm not sure to understand it correctly. Your Application needs to be launched when you shut down your OS, or is your application already launched and has to intercept the shut down signal, to do stuff before closing for instance?

        Anyway, you can have a look at signal handling here:
        http://www.alexonlinux.com/signal-handling-in-linux
        http://man7.org/linux/man-pages/man7/signal.7.html
        http://stackoverflow.com/questions/17942034/simple-linux-signal-handling
        http://www.linuxprogrammingblog.com/all-about-linux-signals?page=3

        1 Reply Last reply Reply Quote 0
        • SGaist
          SGaist Lifetime Qt Champion last edited by

          Hi,

          Isn't that the same question you asked here ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply Reply Quote 1
          • First post
            Last post