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:

Qt Code:
  1. namespace MyNameSpace {
  2. class MyClass {
  3. MyClass();
  4. ~MyClass();
  5.  
  6. QWidget* getWidget();
  7. };
  8. }
To copy to clipboard, switch view to plain text mode 

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