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. aboutToQuit signal for QGuiApplication
Qt 6.11 is out! See what's new in the release blog

aboutToQuit signal for QGuiApplication

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 590 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.
  • I Offline
    I Offline
    inforathinam
    wrote on last edited by
    #1

    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

    jsulmJ 1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      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
      2
      • I inforathinam

        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

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @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
        2

        • Login

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