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. [SOLVED] Again... "Unable to handle unregistered datatype"
QtWS25 Last Chance

[SOLVED] Again... "Unable to handle unregistered datatype"

Scheduled Pinned Locked Moved QML and Qt Quick
4 Posts 2 Posters 3.3k 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.
  • T Offline
    T Offline
    topse
    wrote on last edited by topse
    #1

    Hi and sorry for that topic again.

    I get the following errormessage only when I run my application, not when I debug it. When I run it, it really does not work, when I debug it, everything is fine:

    QMetaProperty::read: Unable to handle unregistered datatype 'QQmlListProperty<ListObject>' for property 'SchuljahrAssistentMgr::currentSchuljahrList'

    Does anyone have a clue, why it only happens on <CTRL>+<R> but not on F5? Its both a Debug-Build...

    Thanks,
    Tobias

    PS:
    qmlRegisterType<ListObject>("com.stonesoft.qmlcomponents", 1, 0, "ListObject");

    is done in both cases of course!

    p3c0P 1 Reply Last reply
    0
    • T topse

      Hi and sorry for that topic again.

      I get the following errormessage only when I run my application, not when I debug it. When I run it, it really does not work, when I debug it, everything is fine:

      QMetaProperty::read: Unable to handle unregistered datatype 'QQmlListProperty<ListObject>' for property 'SchuljahrAssistentMgr::currentSchuljahrList'

      Does anyone have a clue, why it only happens on <CTRL>+<R> but not on F5? Its both a Debug-Build...

      Thanks,
      Tobias

      PS:
      qmlRegisterType<ListObject>("com.stonesoft.qmlcomponents", 1, 0, "ListObject");

      is done in both cases of course!

      p3c0P Offline
      p3c0P Offline
      p3c0
      Moderators
      wrote on last edited by p3c0
      #2

      @topse Did you register the component after loading the QML ?

      157

      1 Reply Last reply
      0
      • T Offline
        T Offline
        topse
        wrote on last edited by
        #3

        Thats it... I did in in a Singleton which is initialized via QML... Just a little confusing now, why it works on "Debug" but not on "Run".

        Thanks for the hint! I never would have been suspicious about the order...

        Tobias

        p3c0P 1 Reply Last reply
        0
        • T topse

          Thats it... I did in in a Singleton which is initialized via QML... Just a little confusing now, why it works on "Debug" but not on "Run".

          Thanks for the hint! I never would have been suspicious about the order...

          Tobias

          p3c0P Offline
          p3c0P Offline
          p3c0
          Moderators
          wrote on last edited by
          #4

          @topse That's because debug process takes some time and by then the registration is done while it is still busy processing the qml.

          157

          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