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

"Cannot read property ... of null" when exiting QML app

    XMLWordPrintable

Details

    • Windows

    Description

      After upgrading from Qt 5.13.0 to Qt 5.14.0, I have now error messages when I close my application.

      For example:

      [+qrc:/QML/ControlBar.qml:71+]: TypeError: Cannot read property 'orderListModel' of null

       

      "orderListModel" is a property of an object that I have added to my QML context via setContextProperty().

       

      I'm not 100% sure if it's a bug or something I'm doing wrong as I am new to Qt and QML, but it seems that other people have the same issue see : https://forum.qt.io/topic/110356/viewpiece-qml-105-typeerror-cannot-read-property-sessionname-of-null

       

       

      Attachments

        1. main.qml
          0.2 kB
          Jovan Mitrevski
        2. main.py
          1 kB
          Jovan Mitrevski
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            thomas12345 Thomas Lenoir
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes