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

    • Type: Bug
    • Status: Open
    • Priority: Not Evaluated
    • Resolution: Unresolved
    • Affects Version/s: dev
    • Fix Version/s: None
    • Component/s: Shiboken
    • Labels:
      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

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

                Dates

                • Created:
                  Updated: