Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-43755

Q_INVOKABLE and namespaces

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.3.2
    • Build tools: moc
    • None

    Description

      Namespace name has to be explicitly used for QML compatibility, which is especially painful because there is no compile-time check for that.

      The earlier bug was resolved by documenting the issue, but it turns out that the section If a C++ class which defines a QML type is declared inside a namespace … disappeared, when registercpptypes.qdoc was moved to definetypes.qdoc.

      Is there any chance to make Q_INVOKABLE compatible with C++ namespaces or compile-time check the type or at least re-document the issue?

      Attachments

        1. bar.cpp
          0.1 kB
          Simon Warta
        2. bar.h
          0.2 kB
          Simon Warta
        3. invokableNamespace.pro
          0.1 kB
          Simon Warta
        4. main.cpp
          2 kB
          Simon Warta

        Issue Links

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

          Activity

            People

              fabiankosmale Fabian Kosmale
              webmaster128 Simon Warta
              Votes:
              6 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes