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

Cached QDialog does not redraw when closing dialog using 'X' button

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Duplicate
    • Affects Version/s: 5.12.4
    • Fix Version/s: 5.12.5
    • Labels:
      None
    • Platform/s:
      Windows

      Description

      We moved project from 5.7.x to 5.12.4 and face the issue with QDialog.

      When QDialog is closed and we execute QDialog::exec second time the QEvent::Paint is not called. When you close Dialog using Escape key or with custom button it works properly.

      When you resize window or call QWidget::repaint the QEvent::Paint is called but in more complicated views it bombards you with asserts.

      I have found workaround to override close event (which also prevent asserts):

          void closeEvent(QCloseEvent* bar) override
            {
            bar->ignore();
            hide();
            }
      

      In attachment you can find test project. 

       

        Attachments

          Issue Links

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

            Activity

              People

              • Assignee:
                qt.team.quick.subscriptions Qt Quick and Widgets Team
                Reporter:
                szymon_mikula Szymon Mikula
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes