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

Crash caused by the function restoreState of QMainWindow (C++)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • P3: Somewhat important
    • None
    • 6.4.0, 6.4.1
    • Widgets: Main Window
    • None
    • Windows, macOS

    Description

      I have loaded my app's layout from a hard disk using the functions restoreGeometry and restoreState of QMainWindow. All works fine in Qt 5.x. However, after upgrading to 6.4.x, my app sometimes crashed, caused by restoreState. It still happens even though I removed the old layout data, and saved the new one (fresh data). Removing that function (restoreState) can help the app to run again. Debug can't catch it clearly since it happens with some delay.

      The attached image is what I can have sometimes with the debugger

      Attachments

        Activity

          People

            axelspoerl Axel Spoerl
            nguyenpham Nguyen Pham
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours
                2h