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

[REG 4->5] QDialog embedded into QGraphicsView blocks when calling QDialog::exec() 2nd time.

    XMLWordPrintable

Details

    • 3dbdc367ffa50b1482d037c956336c809e53a0e6 (qtbase/5.6, 5.11.2015, 5.6)

    Description

      It is a bit rare situation and I have not seen such an usage before, but it seems to be a bug. However, it also can be a misusing case.

      So, the problem is:
      The user have a QGraphicsView with a scene and proxy widget in it. in proxy widget is a widget that inherits from the QDialog. When the mouse button clicked in the top left corner (small corner 100x100 pxs), the dialog appears in the QGraphicsView. The very first time the dialog can be closed without any problems, but the next time, the dialog will block the GUI. I have tried a lot of different options, like emitting signals on mousePress event and so on, but nothing works if the dialog is opened with the exec() -method.
      However, if the dialog is opened with open() method (well, it will not block the GUI and returns immediately) the dialog will not block GUI on the second run. It actually begins to work.

      The small project is attached. And the problem can be reproduced easily, just click in the top left corner of the view and try to close the dialog two or more times.

      Attachments

        1. qtbug49124_56_log.txt
          7 kB
        2. qtbug49124_diag_4.diff
          2 kB
        3. qtbug49124_diag_5.diff
          7 kB
        4. qtbug49124_log_4.txt
          2 kB
        5. qtbug49124.zip
          2 kB
        6. testView.7z
          3 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kleint Friedemann Kleint
            dmnikola Dmitry Nikolaev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes