Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. TypeError: Cannot read property
QtWS25 Last Chance

TypeError: Cannot read property

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 2 Posters 499 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • YaldizY Offline
    YaldizY Offline
    Yaldiz
    wrote on last edited by Yaldiz
    #1

    When i quit the app following error occurs.

    Screenshot 2023-08-07 at 10.57.54.png

    Why this error occurs?
    Also i'm giving CppOwnership to the objects.

    Best regards.

    DanimaD 1 Reply Last reply
    0
    • YaldizY Offline
      YaldizY Offline
      Yaldiz
      wrote on last edited by Yaldiz
      #2

      I solved the problem, first you need to delete the qml application engine instead of deleting the cpp object in the destructor.

      For example;

      ~Application() {
      delete _qmlAppEngine; //first delete qml app engine
      delete _app;
      }

      1 Reply Last reply
      0
      • YaldizY Yaldiz

        When i quit the app following error occurs.

        Screenshot 2023-08-07 at 10.57.54.png

        Why this error occurs?
        Also i'm giving CppOwnership to the objects.

        Best regards.

        DanimaD Offline
        DanimaD Offline
        Danima
        wrote on last edited by
        #3

        @Yaldiz
        can you send more codes.
        It is better simplify the code for questioning.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved