Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Error ASSERT: "!create" in file



  • Hello everyone,
    I created a function that fills an object and returns that object but after several calls to this function it gives me an ASSERT error: "! create" in file.
    I made debug and I know of the error in the return prop, it never goes into nullprt.
    Below i send image from code c++.

    0_1543593389168_image.png
    Has anyone had problems filling out classes in c ++ and sending to qml like I am having.
    Thank you to all and have a nice day of programming .


  • Qt Champions 2017

    This can happen only if prop object is NULL. Looks like in some use case awi_base has NULL object somehow.



  • How can I pass the reference of an already filled object to the qml in a function?
    I already tried to return this object but the qml for some reason converts the object to "qqmlwatchproxy".
    Help-me, please


Log in to reply