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

Named slot is not working

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2: Important P2: Important
    • None
    • 5.13.0, 6.0.0
    • PySide
    • None
    • All

      In the source code, "name" keyword argument is there and passing it will not raise any error or warning.

      @Slot(name='on_btn_clicked')
      def method1(self):
          ...
      

      But it can't used as same as PyQt5's pyqtSlot. Click the button "btn" will raise this error in the backend:

      RecursionError: maximum recursion depth exceeded while calling a Python object
      

      Is there has a logical bug?

        1. test.py
          0.8 kB
          Tiberium Cozok
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            crmaurei Cristian Maureira-Fredes
            kmolyuan Tiberium Cozok
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes