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

Equality check of some signal instances fail

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • 6.3.0
    • 5.15.2, 6.0.0
    • PySide
    • None
    • e9b29a35eb483b19dc3fac7c815d87a3afacdcfd (pyside/pyside-setup/dev) 15e19fd0794a5527d4b94c821a4210849ed59f30 (pyside/pyside-setup/6.2)

    Description

      PySide2 Output:

      PySide2 5.15.2
      c.signal: True
      push_button.clicked: False
      

      PyQt5 Output:

      PyQt5 5.15.2
      c.signal: True
      push_button.clicked: True
      

      Source:

      try:
          from PySide2 import __version__
          from PySide2 import QtCore
          from PySide2 import QtWidgets
          print('PySide2', __version__)
          Signal = QtCore.Signal
      except ImportError:
          from PyQt5 import QtCore
          from PyQt5 import QtWidgets
          print('PyQt5', QtCore.PYQT_VERSION_STR)
          Signal = QtCore.pyqtSignal
      
      
      class C(QtCore.QObject):
          signal = Signal() 
      
      
      def main():
          application = QtWidgets.QApplication([])
          c = C()
          print('c.signal:', c.signal == c.signal)
          push_button = QtWidgets.QPushButton()
          print('push_button.clicked:', push_button.clicked == push_button.clicked)
      
      
      main()
      

      Attachments

        Issue Links

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

          Activity

            People

              ctismer Christian Tismer
              altendky Kyle Altendorf
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: