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

QtCore.QWinEventNotifier raises a ValueError when passed an integer handle

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 6.2.2
    • PySide
    • None

    Description

      The constructor/setHandle raise a ValueError when passed an integer that contains the handle's value, even though the value error says it expects an integer
      The code

      import sys
      from PySide6 import QtCore
      
      print(sys.version_info)
      print(QtCore.QLibraryInfo.build())
      notifier = QtCore.QWinEventNotifier(500)

      produces the following error

      sys.version_info(major=3, minor=9, micro=6, releaselevel='final', serial=0)
      Qt 6.2.2 (x86_64-little_endian-llp64 shared (dynamic) release build; by MSVC 2019) [limited API]
      Traceback (most recent call last):
       File "C:\Users\miso1\AppData\Roaming\JetBrains\PyCharm2021.3\scratches\scratch.py", line 8, in <module>
       notifier = QtCore.QWinEventNotifier(500)
      ValueError: 'PySide6.QtCore.QWinEventNotifier.__init__' called with wrong argument values:
       PySide6.QtCore.QWinEventNotifier.__init__(500,)
      Found signature:
       PySide6.QtCore.QWinEventNotifier.__init__(int, Optional[PySide6.QtCore.QObject] = None)

       

      Attachments

        Issue Links

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

          Activity

            People

              crmaurei Cristian Maureira-Fredes
              numerlor Michal Laboš
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes