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

  • Home
  • SEARCH
  • 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 4010510
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T09:00:34+00:00 2026-05-20T09:00:34+00:00

C is a QObject derived class, I can use it successfully. I get a

  • 0

C is a QObject derived class, I can use it successfully.

I get a compilation error on the “connect”. If i’d change “this->controller”, to “this”, on the target, it will work fine. Something about the this->controller as the recipient causes this not to compile. I realize it must be something stupid, but the cause evades me…

MyClass::MyClass(C * controller)
    : QThread(NULL)
{
    this->controller = controller;
    QObject::connect(this, SIGNAL(OnResponse(ResponseClass*)), this->controller, SLOT(OnResponse(ResponseClass*)));  // <---- "Compiler error: " error: no matching function for call to...."
}
  • 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-20T09:00:35+00:00Added an answer on May 20, 2026 at 9:00 am

    MY bad. The class of “this->controller” was declared with a forward declaration only due to circular referencing of *.h files. That caused the problem. Not much the compiler could do with it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

while i am implementing QObject::connect(mb, SIGNAL(valuechanged(int)),.............); In this case how can i know what
I'm trying to use QObject::connect() with enum parameters. I got this message... QObject::connect: Incompatible
In short, I get following error: QObject::connect: Cannot queue arguments of type 'cv::Mat' (Make
Say i create a derived class as below, class CHIProjectData : public QObject {
I have a class 'Downloader' derived from QObject that runs in a worker thread.
I am using QJson to serialize a QObject -derived class. I am able to
I have a simple QObject-derived object: class MyObject : public QObject { Q_OBJECT public:
Let functionClass be a class derived from QObject . In the class constructor of
I have a custom observer class derived from CBase , MConnectionMonitorObserver , and QObject
Consider this test case: class MyObject : public QObject { Q_OBJECT public: MyObject() {

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.