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

crash when restoring QMainWindow state when screen scale has changed

    XMLWordPrintable

Details

    • Windows
    • 53c8d0d40b (qt/qtbase/dev) 53c8d0d40b (qt/tqtc-qtbase/dev) 8102ac4143 (qt/qtbase/6.3) 8102ac4143 (qt/tqtc-qtbase/6.3) bcff7f13fd (qt/tqtc-qtbase/6.2)

    Description

      crash when calling QMainWindow::restoreState if screen scale has been changes since last saveState. (ie change 100% to 125%)

       

      QMainWindow::restoreState will call QDockAreaLayout::constrainedRect that ask for a screen.

      screen is nullptr in this case and const QRect screenRect = screen->geometry(); crash

       

      i work with 2 differents screens.

      Attachments

        1. QDockAreaLayout.png
          QDockAreaLayout.png
          32 kB
        2. stack.png
          stack.png
          17 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            anrocha André De La Rocha (Inactive)
            alban_go2 Alban Pellet
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes