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

QWizardPage.registerField cuts of signal name

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: Not Evaluated
    • Resolution: Unresolved
    • Affects Version/s: 5.15.1
    • Fix Version/s: None
    • Component/s: PySide
    • Labels:
      None
    • Environment:
      Distributor ID: Debian
      Description: Debian GNU/Linux 10 (buster)
      Release: 10
      Codename: buster

      Linux 4.19.0-10-amd64 #1 SMP Debian 4.19.132-1 (2020-07-24) x86_64 GNU/Linux

      Python 3.7.3
    • Platform/s:
      Linux/X11

      Description

      When registering a new mandatory field using (in this case) QWizardPage.registerField() the signal name gets cut of.

      Example:

      A subclassed QWizardPage calling:
      self.registerField("nodeName*", self, "selectedNode", "nodeSelectionChanged()")
       
      This ends up trying to connect signal "odeSelectionChanged". Resulting in:
      QObject::connect: No such signal Wizard_NodeSelection::odeSelectionChanged()
       
      Attached is test.py to reproduce the issue in Pyside2 and test_pyqt.py for the same thing(but working) in PyQt5.
       

      As a workaround you can put a dummy character in front of the signal name when registering as so:

      self.registerField("nodeName*", self, "selectedNode", "ZnodeSelectionChanged()")
       

      And everything will work.

        Attachments

        1. test_pyqt.py
          2 kB
        2. test.py
          2 kB

          Issue Links

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

            Activity

              People

              Assignee:
              crmaurei Cristian Maureira-Fredes
              Reporter:
              agnon Marcus Nordenberg
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes