My apologies for the long email. Just to not bore everyone, I'll send
two messages. The first one quickly summarizing my observations and
questions. In the next one, I'll reply to myself with  the details.

I am able to use a class inside a namespace if I use this general
pattern in the header file:

namespace bar {
    class foo;
}
class bar::foo {
   ...
};

However, I cannot get things to work using this pattern:

namespace bar {
    class foo {
        ...
    };
}

Has anyone else seen this behavior? Is there another way to have a bind
a class that is inside a C++ namespace?

Yes, I  read the namespace type in the typesystem documentation:

http://www.pyside.org/docs/apiextractor/typesystem_specifying_types.html#namespace-type

That document seems to indicate that you cannot have classes in a
namespace. To quote: "Note that within namespaces, the generator only
supports enums (i.e., no functions or classes)." So, I understand that
the answer may be that it is impossible right now. I am just perplexed
why it works one way and not the other.

Thank you
John Cummings
_______________________________________________
PySide mailing list
[email protected]
http://lists.openbossa.org/listinfo/pyside

Reply via email to