Alex
24th May 2006, 01:36
Qt 3.3.4, QSA 1.1.3, multiplatform
I have two C++ classes which are mapped to QSA.
I want to use some enum in both these classes like this:
class C1
{
Q_OBJECT
Q_ENUMS(MyEnumType)
public:
enum MyEnumType { Value1, Value2 };
void f1(MyEnumType n);
}
class C2
{
void f2(MyEnumType n);
}
QSA examples use enum only in same classes where it is defined.
How to use same enum in several classes?
Using of
void f2(C1::MyEnumType n); leads to incorrect autocompletion.
I have two C++ classes which are mapped to QSA.
I want to use some enum in both these classes like this:
class C1
{
Q_OBJECT
Q_ENUMS(MyEnumType)
public:
enum MyEnumType { Value1, Value2 };
void f1(MyEnumType n);
}
class C2
{
void f2(MyEnumType n);
}
QSA examples use enum only in same classes where it is defined.
How to use same enum in several classes?
Using of
void f2(C1::MyEnumType n); leads to incorrect autocompletion.