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

Shiboken produces non-deterministic bindings

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 5.6, dev
    • Fix Version/s: 5.11.1
    • Component/s: Shiboken
    • Labels:
      None
    • Commits:
      285033392e3c5a29d35cf985508309f2a9d61628 (pyside-setup/5.11, 26.7.2018, 5.11.1)

      Description

      Two Shiboken wrappers built from the same source are incompatible with each other. A trivial reproduction of this is to build PySide twice and compare the pyside2_qtcore_python.h header files (example attached). This is makes it so that a client can't replace the build of PySide we shipped with their own. An example of the incompatibility is that the trivial conversion str<->unicode will fail.

       

      TypeError: # 'MyQDialog.MyQDialog' called with wrong argument types:
      # MyQDialog.MyQDialog(str, str, str, str, PySide2.QtWidgets.QWidget)
      # Supported signatures:
      MyQDialog.MyQDialog(unicode, unicode, unicode, unicode, PySide2.QtWidgets.QWidget = None)

       

        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:
              badsingleton Felix Bourbonnais
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes