I am creating an instance of class B in a method of class A (which is a QMainWindow) with B instanceB; and then call a method of B with B.method() and pass it the function pointer of a method of A.
Now the compiler says argument of type "void (A::*)()" is incompatible with parameter of type "void (*)()". How do I resolve this if possible?
Code:
void A::method1_of_A(void)
{
B instanceB;
B.methodB(method2_of_A); // this is where the compiler complains
}