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

TypeError: 'QWebEngineScript.setWorldId' called with wrong argument types: QWebEngineScript.setWorldId(ScriptWorldId)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • 6.4.1
    • 6.4.0
    • PySide
    • None
    • 0cb568acc65e31a050db9121ba9d9e908d5a8855 54e93ec6a2 (pyside/pyside-setup/6.3) ae6c470f17 (pyside/pyside-setup/6.4) 54e93ec6a2 (pyside/tqtc-pyside-setup/6.3) ae6c470f17 (pyside/tqtc-pyside-setup/6.4) ae6c470f17 (pyside/tqtc-pyside-setup/tqtc/6.4)

    Description

      This line works in PyQt6,

      QWebEngineScript.setWorldId(QWebEngineScript.ScriptWorldId.MainWorld)
      

      but throws in PySide6:

      TypeError: 'PySide6.QtWebEngineCore.QWebEngineScript.setWorldId' called with wrong argument types:
       PySide6.QtWebEngineCore.QWebEngineScript.setWorldId(ScriptWorldId)
      Supported signatures:
       PySide6.QtWebEngineCore.QWebEngineScript.setWorldId(int)
      
      class QWebEngineScript
         quint32 worldId() const;
         void setWorldId(quint32);
      

       

      Attachments

        1. pyside2110_pyqt.py
          0.4 kB
        2. pyside2110.py
          0.4 kB
        For Gerrit Dashboard: PYSIDE-2110
        # Subject Branch Project Status CR V

        Activity

          People

            ctismer Christian Tismer
            philip Philip Lee
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes