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. App not closing when 'closed' [Solved]

App not closing when 'closed' [Solved]

Scheduled Pinned Locked Moved General and Desktop
6 Posts 4 Posters 2.1k 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.
  • M Offline
    M Offline
    mirswith
    wrote on last edited by
    #1

    I am having a very odd problem. I've written multiple Qt apps and for some reason this particular app will not close the process when I close the window. To test in my main window I have removed everything from the constructor so I end up with an empty window; I run the app, hit the close button and the window goes away but the process is still running. Not quite sure what is going on so I thought I would check here to see if anyone had some ideas?

    Thanks!

    1 Reply Last reply
    0
    • ZlatomirZ Offline
      ZlatomirZ Offline
      Zlatomir
      wrote on last edited by
      #2

      What does the debugger say? If you can't figure it out with debugger, try to reproduce the behaviour in a small test code that you can post here.
      LE: maybe a quick fix is qApp->setQuitOnLastWindowClosed(true);

      https://forum.qt.io/category/41/romanian

      1 Reply Last reply
      0
      • I Offline
        I Offline
        issam
        wrote on last edited by
        #3

        Can you post the code ?

        http://www.iissam.com/

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mirswith
          wrote on last edited by
          #4

          Turns out one of the 3rd party libs I was linking to was hanging things up. Fixed the problem.

          Thanks.

          1 Reply Last reply
          0
          • M Offline
            M Offline
            mlong
            wrote on last edited by
            #5

            Be sure and edit your initial post to add [Solved] to the title. Thanks!

            Software Engineer
            My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

            1 Reply Last reply
            0
            • M Offline
              M Offline
              mirswith
              wrote on last edited by
              #6

              Ah, I was wondering how those' [Solved]'s were added. Thanks.

              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