Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. PySide6 Signal and Slots tutorial not working
Forum Updated to NodeBB v4.3 + New Features

PySide6 Signal and Slots tutorial not working

Scheduled Pinned Locked Moved Unsolved Qt for Python
3 Posts 3 Posters 439 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    VCCEisele
    wrote on last edited by
    #1

    The example code for Overloading Signals and Slots with Different Types isn't working.
    https://doc.qt.io/qtforpython/tutorials/basictutorial/signals_and_slots.html#overloading-signals-and-slots-with-different-types
    It gives error message
    "Exception has occurred: TypeError
    QObject() takes at most 1 argument (2 given)"

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Thanks for the warning.
      Can you check the bug report system to see if it's already mentioned ? If not, please open a new ticket.
      While the documentation gets fixed, you can simply remove the self that you find on the super call line.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • F Offline
        F Offline
        friedemannkleint
        wrote on last edited by
        #3

        This will be fixed (see https://codereview.qt-project.org/c/pyside/pyside-setup/+/432064/ ).

        Note though that the technique "Overloading Signals and Slots with Different Types" is a Qt 5 legacy; it should not be used in new code.

        Btw, have you considered contributing fixes yourself ( see https://contribute.qt-project.org/guidelines )?

        1 Reply Last reply
        1

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved