I defined a siganl in "a.h" like this:
signals:
void Sgl(int);
when I want to emit it in "b.cpp"
A a;
emit a.Sgl(int);
error C2248: 'A::Sgl' : cannot access protected member declared in class 'A'
this is a very common problem if u want to emit signal in class while it is defined in another class. Any one can help me ?
Bookmarks