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

QWizardPage.registerField cuts of signal name

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 5.15.1
    • PySide
    • None
    • 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
    • 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.py
          2 kB
        2. test_pyqt.py
          2 kB
        3. pyside1389.py
          3 kB

        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
              agnon Marcus Nordenberg
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes