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. Custom QML plugin: Cannot assign to non-existent property
Forum Update on Monday, May 27th 2025

Custom QML plugin: Cannot assign to non-existent property

Scheduled Pinned Locked Moved Solved QML and Qt Quick
2 Posts 1 Posters 543 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.
  • M Offline
    M Offline
    martonmiklos
    wrote on last edited by
    #1

    Hello all,

    I am trying to build a QML plugin for Sailfish OS.

    The plugin is just a skeleton at the moment, it can be found here:
    https://github.com/martonmiklos/harbour-sms-share-plugin/tree/master/vcardserializer

    It is installed to the /usr/lib/qt5/qml/hu/mm/vCardSerializer/ properly, and I think it got loaded because the vCardSerializerPlugin::registerTypes(const char *uri) got called for sure.

    If I do an import in QML with :

    import hu.mm.vCardSerializer 1.0
    

    it still loads fine, but if I create an instance from it in the QML:

    vCardSerializer {
           id: id_vCardSerializer
    }
    

    I get:
    [W] unknown:813 - file:///usr/lib/qt5/qml/Sailfish/Silica/PageStack.qml:813: Error: Error while loading page: file:///usr/share/nemo-transferengine/plugins/SmsShare.qml:79 Cannot assign to non-existent property "vCardSerializer"

    Any idea, help would be warmly welcome!

    M 1 Reply Last reply
    0
    • M martonmiklos

      Hello all,

      I am trying to build a QML plugin for Sailfish OS.

      The plugin is just a skeleton at the moment, it can be found here:
      https://github.com/martonmiklos/harbour-sms-share-plugin/tree/master/vcardserializer

      It is installed to the /usr/lib/qt5/qml/hu/mm/vCardSerializer/ properly, and I think it got loaded because the vCardSerializerPlugin::registerTypes(const char *uri) got called for sure.

      If I do an import in QML with :

      import hu.mm.vCardSerializer 1.0
      

      it still loads fine, but if I create an instance from it in the QML:

      vCardSerializer {
             id: id_vCardSerializer
      }
      

      I get:
      [W] unknown:813 - file:///usr/lib/qt5/qml/Sailfish/Silica/PageStack.qml:813: Error: Error while loading page: file:///usr/share/nemo-transferengine/plugins/SmsShare.qml:79 Cannot assign to non-existent property "vCardSerializer"

      Any idea, help would be warmly welcome!

      M Offline
      M Offline
      martonmiklos
      wrote on last edited by
      #2

      @martonmiklos
      Actually I was struggling with this for a while, and now I did a deeper digging on this forum I have found this:
      https://forum.qt.io/topic/91989/qmlregistertype-dont-recogized-into-qml-file/4

      And it solves my problem...
      Many thanks @raven-worx again!

      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