Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 617189
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T18:24:28+00:00 2026-05-13T18:24:28+00:00

I am looking for Qt’s implemention of the function QObject::qt_metacall(_c, _id, _a); this is

  • 0

I am looking for Qt’s implemention of the function QObject::qt_metacall(_c, _id, _a); this is where a given function name is converted into index. But I am not able to find the function implementation anywhere in their source code.

int ssObject::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QObject::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: readyToPrint(); break;
        case 1: readyToPrint1((*reinterpret_cast< int(*)>(_a[1]))); break;
               //''''

         }
    return _id;
   }

Why is parent class’s qt_metacall is called ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T18:24:28+00:00Added an answer on May 13, 2026 at 6:24 pm

    You should be able to find moc_qobject.cpp somewhere. It requires you to build Qt as this file is auto-generated, just as your own moc-files.

    Here it is from my build (4.6.1 on windows):

    int QObject::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
    {
        if (_id < 0)
            return _id;
        if (_c == QMetaObject::InvokeMetaMethod) {
            switch (_id) {
            case 0: destroyed((*reinterpret_cast< QObject*(*)>(_a[1]))); break;
            case 1: destroyed(); break;
            case 2: deleteLater(); break;
            case 3: d_func()->_q_reregisterTimers((*reinterpret_cast< void*(*)>(_a[1]))); break;
            default: ;
            }
            _id -= 4;
        }
    #ifndef QT_NO_PROPERTIES
          else if (_c == QMetaObject::ReadProperty) {
            void *_v = _a[0];
            switch (_id) {
            case 0: *reinterpret_cast< QString*>(_v) = objectName(); break;
            }
            _id -= 1;
        } else if (_c == QMetaObject::WriteProperty) {
            void *_v = _a[0];
            switch (_id) {
            case 0: setObjectName(*reinterpret_cast< QString*>(_v)); break;
            }
            _id -= 1;
        } else if (_c == QMetaObject::ResetProperty) {
            _id -= 1;
        } else if (_c == QMetaObject::QueryPropertyDesignable) {
            _id -= 1;
        } else if (_c == QMetaObject::QueryPropertyScriptable) {
            _id -= 1;
        } else if (_c == QMetaObject::QueryPropertyStored) {
            _id -= 1;
        } else if (_c == QMetaObject::QueryPropertyEditable) {
            _id -= 1;
        } else if (_c == QMetaObject::QueryPropertyUser) {
            _id -= 1;
        }
    #endif // QT_NO_PROPERTIES
        return _id;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Looking through some java code and this just does not seem right. To me,
Looking to do a bit of refactoring... Using NHibernate I have this query currently
Looking for best advice on how to do this: I have an insert like
Looking at this css file ( especially the last 5 lines ): #page section
Looking a solution for strange JTDS error message: Could not find a Java charset
Looking at DDD, we abstract the database into the various models which we operate
Looking for a regexp sequence of matches and replaces (preferably PHP but doesn't matter)
looking into multi file - drag and drop - upload scripts. we were using
Looking for something simple (like Smarty for PHP or erb in Rails), but that
Looking to add an attribute to an existing xml element <D_COMMS> , not replace

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.