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

crash when new QMenuBar

    XMLWordPrintable

    Details

    • Platform/s:
      Windows

      Description

      I created one thread to run qml ApplicationWindow, then create QMainWindow in main thread, the app crash when new QMenubar in main thread.

      I got that after debugging:
      void QMenubarPrivate::init()

      { ...... HandleReparent();       // it result in crash ... extension = new ... ...... }

      I found handlereparent will issue some events and then access 'extension' which will be created later.

      I think maybe we should reconsider the order of the code lines.

        Attachments

        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:
              niqingliang2003 niqingliang2003
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes