Hello

I want to access a function inside a custom QMainWindow (subclass that inherits QMainWindow), I called the class "BMW" (basic main window).

public :
void AccessFunction(BMW*);

when I try to pass the pointer to the BMW object, I get an error (BMW has not been declared).
note that the class which (accessFunction(BMW) ) method is in, is a foreign class, but an object of the class is inside BMW as an instance.

Strange enough, this method works with other classes ; thus it can communicate easily & trigger foreign functions smoothly.

Any help ? :/