I'm having a really weird problem that I really can't figure it out. So I have this Box
object that I created in an header file:
#ifndef BOX_H
#define BOX_H
class Box
{
public:
Box(string newName);
~Box();
//...
};
#endif // BOX_H
Then I have this BoxTable
class in another 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 this is all correct, but when I compile I get this error:
error: 'Box' is not a type
on the line that I commented with "here".
Does anyone know what I'm doing wrong? I would really appreciate the help. If you need more details just ask.