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

QWizard, setPixmap does not allow `str` for image path

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3: Somewhat important P3: Somewhat important
    • 6.7.2, 6.8.0
    • 6.6.3.1
    • PySide
    • None
    • Windows
    • 30ed48e25 (dev), 980fa8e9a (6.7)

      Updating our toolkit to PySide6 in support of Unreal Engine and our production tools we started getting errors on classes deriving from QWizard on their post initialization. We traced the problem down to calls to `setPixmap` which were error out due to unsupported signatures. We're passing a WizardPixmap enum value and a string with the path to an known image.

      Confirmed and reproduced the problem with the following code in a python interpreter

      ```

      from PySide6 import QtWidgets, QtGui

      app = QtWidgets.QApplication([])

      wiz = QtWidgets.QWizard()

      path = 'some_path_to_an_image.jpg'

      wiz.setPixmap(QtWidgets.QWizard.BannerPixmap, path)

      ```

      This will raise an exception, instead doing this:

      ```

      pixmap = QtGui.QPixmap(path)

      wiz.setPixmap(QtWidgets.QWizard.BannerPixmap, pixmap)

      ```

      Will not.

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

            crmaurei Cristian Maureira-Fredes
            ttfslackba Benjamin Slack
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes