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

Shiboken generate wrong type names (including namespaces that are marked as generate="no')

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • 5.13.0
    • None
    • Shiboken
    • None

    Description

      Shiboken uses the full type name while generating python types, even if the namespace (parent type) is marked as not generated.

       

      For example. 

       

      namespace Foo {
      class MyType;
      }
      

       

       

      if I mark namespace "Foo" as not generated, I expect the "MyType" to be represented as "Module.MyType" but that is not true. Shiboken represents it as "Module.Foo.MyType".

       

      from Module import MyType
      o = MyType()
      print(o) """ prints Module.Foo.MyType
       
      

       

      That causes a problem on shiboken type resolution based on type name too.

       

       

       

      Attachments

        Issue Links

          For Gerrit Dashboard: PYSIDE-1074
          # Subject Branch Project Status CR V

          Activity

            People

              kleint Friedemann Kleint
              renatofilho renato araujo oliveira filho
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: