Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
6.0.0 Alpha
-
-
b6a164891537d6d3a515d78a44b0de6595a170c2 (qt/qtdeclarative/dev)
Description
namespace Foo {
class Bar
{
Q_OBJECT
QML_ELEMENT
}
Yields in: Invalid QML element name "Foo::Bar"
QML_NAMED_ELEMENT(Bar) works.
I think it would be really useful if the namespace could be stripped automatically (especially since it fails with namespace anyway) instead of needing to repeat the name in each registration.