Qt Forum

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

    Unsolved aboutToQuit signal for QGuiApplication

    General and Desktop
    3
    3
    210
    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.
    • I
      inforathinam last edited by

      Hi,

      Do we have any mechanism to simulate QGuiApplication to emit "aboutToQuit" signal.

      I want to do something when the application is about to quit.

      Regards,
      Raja

      jsulm 1 Reply Last reply Reply Quote 0
      • sierdzio
        sierdzio Moderators last edited by

        Just connect to aboutToQuit() signal. What do you mean by "simulate"? You can trigger that signal by simply clicking "x" on your main window.

        (Z(:^

        1 Reply Last reply Reply Quote 2
        • jsulm
          jsulm Lifetime Qt Champion @inforathinam last edited by

          @inforathinam QGuiApplication has this signal because it is derived from QCoreApplication
          https://doc.qt.io/qt-5/qcoreapplication.html#aboutToQuit

          https://forum.qt.io/topic/113070/qt-code-of-conduct

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