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

hide() on a QDialog breaks exec() loop.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: Not Evaluated Not Evaluated
    • None
    • 6.9.3
    • PySide
    • None
    • Arch Linux
    • Linux/Wayland

      When you call hide() on a QDialog, it breaks the exec() loop, even if you subsequently call show(). According to the documentation, the loop should remain active until the dialog is closed. Calling hide() does not close the dialog; it simply makes it invisible while the dialog still exists.

      I have attached a simple example (without a main loop) featuring two buttons: one for hiding the dialog and another for closing it. The button for hiding should not exit the exec() loop.

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

            crmaurei Cristian Maureira-Fredes
            jakobdev Peter Hase
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes