Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Does QJSValue protect its value from garbage collection?
pderocco last edited by
This question came up in the context of another post, so I thought I'd ask it directly, since someone who might know the answer might not have read the other post.
But in that other post, I did a test:
and in that simple case, the object seemed to be preserved. However, I don't know if it really was preserved, or if it was accessing the ghost of the object that simply hadn't been scribbled over yet.
So can anyone provide a definitive answer to this?