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

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

XMLWordPrintable

    • Windows

      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. 

       

        1. image-2019-11-21-11-58-46-960.png
          32 kB
          Szymon Mikula
        2. QtConsoleApplication1.zip
          5 kB
          Szymon Mikula
        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
            szymon_mikula Szymon Mikula
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes