JPNaude
29th June 2009, 13:25
Hi
I apologize if this is more of a C++ question, but I believe that it has a really simple answer.
I'm using namespaces in one of my libraries, and I have the following:
namespace MyNameSpace {
class MyClass {
MyClass();
~MyClass();
QWidget* getWidget();
};
}
Now, whenever I call getWidget(), I get the following error message.
error: cannot convert `QWidget*' to `MyNameSpace::QWidget*' in assignment.
What am I doing wrong? I don't understand why it would think that QWidget is part of the namespace.
Thanks for any advice.
Jaco Naude
I apologize if this is more of a C++ question, but I believe that it has a really simple answer.
I'm using namespaces in one of my libraries, and I have the following:
namespace MyNameSpace {
class MyClass {
MyClass();
~MyClass();
QWidget* getWidget();
};
}
Now, whenever I call getWidget(), I get the following error message.
error: cannot convert `QWidget*' to `MyNameSpace::QWidget*' in assignment.
What am I doing wrong? I don't understand why it would think that QWidget is part of the namespace.
Thanks for any advice.
Jaco Naude