XMLWordPrintable

    • Icon: Technical task Technical task
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • Build tools: moc
    • None

      moc registers the type with fully qualified name (which is ok) but the problem is when we use it in other places (e.g. a class property) it also must be fully qualified. e.g.:

      namespace MyNS {
       Q_NAMESPACE
       enum MyEnum {
        Key1,
        Key2
       };
       Q_ENUM(MyEnum)
      
       class MyClass {
          Q_GADGET
          Q_PROPERTY(MyNS::MyEnum myEnum MEMBER myEnum)
          MyNS::MyEnum myEnum;
       }
      }
      

      As you can see MyClass is inside MyNS namespace but moc still needs to use MyNS::MyEnum instead of just MyEnum .

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            fabiankosmale Fabian Kosmale
            taipan BogDan Vatra
            Votes:
            4 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes