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
Post a Comment