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

Initial script _utils.py looks for a wrong DLL and also fails to qRegisterResourceData()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 6.0
    • None
    • PySide
    • Windows 32 and 64-bit + Python 3.5

    Description

      The initial script "_utils.py.in" of pyside2 looks for a wrong DLL pattern:

              if sys.platform == 'win32':
                  pattern = ["QtCore*.dll"]
              else:
                  ...
      

      The pattern should be "Qt5Core*.dll" instead.

      The other problem is "rc_struct", "rc_name", "rc_data" always be garbage collected which makes the registered qt.conf resource invalid.

      rc_struct, rc_name, rc_data = _get_qt_conf_resource(prefix, binaries,
                                                               plugins, imports,
                                                               translations)
      

      A solution could be declaring the three variables global.

      global rc_struct, rc_name, rc_data
      

      Attachments

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

        Activity

          People

            ctismer Christian Tismer
            jasonwu Jiasen Wu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes