c++ - GUI type not defined -


i'm having weird problem can't figure out. have box object created in header file:

#ifndef box_h #define box_h  class box { public:     box(string newname);     ~box();             //...  };  #endif // box_h 

then have boxtable class in header file:

#ifndef boxtable_h #define boxtable_h  #include <qtablewidget> #include "box.h"  class boxtable : public qtablewidget {  q_object  public:     boxtable(qwidget* parent = 0, int rows = 0);     ~boxtable();      void setbox(int row, box* a); //here     //...  };  #endif // boxtable_h 

to me correct, when compile error:

error: 'box' not type

on line commented "here".

does know i'm doing wrong? appreciate help. if need more details ask.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -