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. Unable to handle unregistered datatype 'QLinkedList<QString*>'
Forum Updated to NodeBB v4.3 + New Features

Unable to handle unregistered datatype 'QLinkedList<QString*>'

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 204 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.
  • I Offline
    I Offline
    ijuha
    wrote on last edited by
    #1

    I'm looking to pass a QLinkedLIst to be iterated/displayed in QML. Since QLinkedList does not require the Q_DECLARE_METATYPE macro, I thought I could register as Q_PROPERTY in my c++ source file:

      Q_PROPERTY(QLinkedList<QString *> roleFunctions READ GetRoleFunctions NOTIFY roleFunctionsChanged)
    

    However, I'm getting the error during emulation:

    QMetaProperty::read: Unable to handle unregistered datatype 'QLinkedList<QString*>' for property 'BackEnd::functions'
    

    First of all, is it possible to pass a QLinkedList to be iterated in QML? If so, what am I missing?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      I don't know about the use of QLinkedList with QML but why don't you use a QStringList ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved