Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    QMLEngine destroy my C++ object

    QML and Qt Quick
    1
    1
    513
    Loading More Posts
    • 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.
    • I
      iDarkLord last edited by

      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 ?

      1 Reply Last reply Reply Quote 0
      • First post
        Last post