Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-140876

hide() on a QDialog breaks exec() loop

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.9.3
    • None
    • Arch Linux
    • Linux/Wayland, Linux/X11

      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.

      Note:
      I already reported it for PySide, but I was told to report the bug against C++ instead.

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            jakobdev Peter Hase
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes