QMLEngine destroy my C++ object

  • I am register a singletone class by calling qmlRegisterSingletonType. In my singletone i am creating objects by calling a new ClassName, but garbage collector destroy them. How i can prevent it ? Am i able to create object instances inside Singletone ?

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.