XMLWordPrintable

Details

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

    Description

      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 .

      Attachments

        Issue Links

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

          Activity

            People

              fabiankosmale Fabian Kosmale
              taipan BogDan Vatra
              Votes:
              5 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes