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

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

      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.

       

       

       

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

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

              Created:
              Updated:
              Resolved: