Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QMetaMethod::invoke: Unable to handle unregistered datatype 'quintptr'
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 1 Posters 5.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.
  • H Offline
    H Offline
    HenryGer
    wrote on last edited by HenryGer
    #1

    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
    0
    • H Offline
      H Offline
      HenryGer
      wrote on last edited by
      #2

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

      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