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. Qml extention plugin as a singleton
Forum Updated to NodeBB v4.3 + New Features

Qml extention plugin as a singleton

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 349 Views
  • 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.
  • avknA Offline
    avknA Offline
    avkn
    wrote on last edited by
    #1

    My objective is to use a dynamically loaded library in Qml Quick Application project.
    The library is a Qml extention plugin that exposes one object.
    The problem is that this object should be a singletone.
    If I include the plugin in a qml file that is declared as a singleton,
    no errors at compile time, but if I try to debug, the message appears:
    ... Singleton.qml:6 Non-existent attached object
    Is it not possible to use a class defined in QML extention plugin as a singleton? What is here wrong?

    Thank you in advance for your help!

    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