I\'m trying to have a QList and getting the error when compiling! Here\'s my code:
class Right
{
public:
Right();
Right(const Right& other);
Righ
It means that you have Right
defined somewhere else as a variable, enumeration constant or similar. For example here's a test case that reproduces your problem:
class Right;
enum { Right };
QList getRights();
You can make sure that you use the class as follows
QList getRights();
although it would be better to track down the other definition of Right
using an IDE or something else and fix the source of the problem.