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

static methods slot cannot be called

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.14.0
    • Fix Version/s: None
    • Component/s: PySide
    • Labels:
      None
    • Platform/s:
      Linux/Wayland, macOS, Windows

      Description

      The static methods cannot be properly exposed to Qml. The lack of qmlRegisterSingletonType also doesn't help to expose the static methods without object instance. But still should be able to call static methods from Qml instance.

       

      I did attach file to repro the issue.

        Attachments

        1. main.py
          1 kB
        2. main.qml
          0.7 kB
        3. requirements.txt
          0.0 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:
              jeromegodboutamotus Jerome Godbout
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes