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

Application crash in QML after updating QT from 5.6 to 5.7

    XMLWordPrintable

Details

    Description

      Application uses QML. After updating QT to 5.7 application start crashing, if you close application.
      Call stack -
      I found crash. If you use

      QQmlContext* tableContext = m_table->rootContext();
      tableContext->setContextProperty("MyWidget", this);
      

      Before closing part that depend on QML-Model-View, you have to do it:

      QQmlContext* tableContext = m_table->rootContext();
      tableContext->setContextProperty("MyWidget", nullptr);
      

      It like reset pointer to nullptr for QML.
      QT 5.6 does not have this problem.

      Attachments

        Issue Links

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

          Activity

            People

              Unassigned Unassigned
              serg Serhii Prepodobnyi
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes