Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-101

Shiboken with two classes with the same name in different namespaces

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 1.1.0, dev
    • Fix Version/s: dev
    • Component/s: Shiboken
    • Labels:

      Description

      I have two classes:

      namespace bb {
        class Application: public QCoreApplication;
      }
      

      and

      namespace bb {
        namespace cascades {
          class Application: public bb::Application;
        }
      }
      

      My typesystem looks like this:

      <namespace-type name="bb" generate="yes">
         <object-type name="Application" />
         <namespace-type name="cascades">
            <object-type name="Application" />
         </namespace-type>
      </namespace-type>
      

      When shiboken generates the binding it creates two classes with the same name, ApplicationWrapper (in
      bb_application_wrapper.cpp and bb_cascades_application_wrapper.cpp). Since they have the same
      name the linker complains (obviously).

      Expected behavior is that the generated classes also resides in the original namespace (bb and bb::cascades).

        Attachments

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

          Activity

            People

            Assignee:
            kleint Friedemann Kleint
            Reporter:
            micke.prag Micke Prag
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes