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. Singleton problem
Qt 6.11 is out! See what's new in the release blog

Singleton problem

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 2 Posters 252 Views 1 Watching
  • 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.
  • SPlattenS Offline
    SPlattenS Offline
    SPlatten
    wrote on last edited by SPlatten
    #1
    This post is deleted!
    1 Reply Last reply
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Moderators Qt Champions 2024 Qt Champions 2022 Qt Champions 2017
      wrote on last edited by
      #2

      Suspect two things.

      1. staledata_t* what is this type ? DataMngr.getInstance(root.dataTag) returning an QObject. Did you register the return type to be known to QML ?
      2. DataMngr.getInstance(root.dataTag) instance may not be returning anything. This may be null. Please check this.
      3. Any issue with DMngrSingleton this object creation ? Where is it created ? Did you check with debug statements?

      Dheerendra
      @Community Service
      Certified Qt Specialist
      https://www.pthinks.com

      SPlattenS 1 Reply Last reply
      1
      • dheerendraD dheerendra

        Suspect two things.

        1. staledata_t* what is this type ? DataMngr.getInstance(root.dataTag) returning an QObject. Did you register the return type to be known to QML ?
        2. DataMngr.getInstance(root.dataTag) instance may not be returning anything. This may be null. Please check this.
        3. Any issue with DMngrSingleton this object creation ? Where is it created ? Did you check with debug statements?
        SPlattenS Offline
        SPlattenS Offline
        SPlatten
        wrote on last edited by
        #3
        This post is deleted!
        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