I have a class:
class MakeMeshStructure : public QObject
{
Q_OBJECT
public:
MakeMeshStructure(QObject* parent = 0) {}
inside one of its functions I do this:
CadPanel * paneli;
int npanelov = mesh.faces_end().handle().idx();
paneli = new CadPanel[npanelov];
and later this:
for(int i=0; i<npanelov;i++){
if(paneli[i].wasSet)paneli[i].draw(this);
}
this is my panel class:
class CadPanel : public QObject
{
Q_OBJECT
public:
CadPanel();
void draw(MakeMeshStructure* parent); //error here
The error is: Error 27 error C2061: syntax error : identifier 'MakeMeshStructure'
How do I pass MakeMeshStructure parent on to be used in this CadPanel function? Ty