Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-984

Unable to close window and exit the program using pyqt5

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Invalid
    • Affects Version/s: 5.11.2
    • Fix Version/s: None
    • Component/s: Other
    • Labels:
      None
    • Platform/s:
      macOS, Windows

      Description

      The best description is here:

      https://stackoverflow.com/questions/55400635/how-to-close-a-window-in-pyqt5-and-terminate-the-program-program-gets-stuck

       

      I will summarize again, below in case there is no access to my stackoverflow question.

      "I want to create a window in pyqt5 and then close it. For some reason the program does not exit after closing the window. It gets stuck. I have been reading several related posts but none give a clear answer.

      I have already tried code such as "self.object.close()", "app.quit()", even "self.object.destroy()", but all work in the same way. The only thing that really closes the window is by clicking the x (close) at the window itself. But this is not the behavior I need. I would like to close the window using my code."

       

      code attached

       
       

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            crmaurei Cristian Maureira-Fredes
            Reporter:
            sodanet Luis Vargas
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes