I have a problem with my classes.
I have two separate headers. Color.h and Painter.h:
1). Color.h
class Color{
int number;
public:
void initialize();
void change (Painter draw);
}
2). Painter.h
class Painter{
Color a,b;
public:
void get();
void draw();
}
My problem is, that i need to use Painter in class Color, and class Painter use Color. In Qt, i get a error that Painter is not a type. How can i fix this? What is solution for that problem?