Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Solved QMetaMethod::invoke: Unable to handle unregistered datatype 'quintptr'

    General and Desktop
    1
    2
    4174
    Loading More Posts
    • 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.
    • H
      HenryGer last edited by HenryGer

      I am calling the following code.
      qRegisterMetaType<quintptr>();
      qDebug() << QMetaObject::invokeMethod(&m_remoteSyncWorker, "getItem", Q_ARG(quintptr, 1));r'

      And I am getting the error
      QMetaMethod::invoke: Unable to handle unregistered datatype 'quintptr'
      false

      quintptr was declared with Q_DECLARE_METATYPE(quintptr)

      Such scheme works with defined by me data types like
      QMetaObject::invokeMethod(&m_remoteSyncWorker, "addItem", Q_ARG(ItemData, data)); // it works fine

      Why it may be happening?

      1 Reply Last reply Reply Quote 0
      • H
        HenryGer last edited by

        I got the solution. Enjoy and thumb up
        https://stackoverflow.com/questions/14712583/using-uint16-t-and-char-with-qmetaobjectinvokemethod

        1 Reply Last reply Reply Quote 0
        • First post
          Last post