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

static methods slot cannot be called

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P2: Important
    • None
    • 5.14.0
    • PySide
    • None
    • 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
        4. pyside1217.zip
          1 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
              jeromegodboutamotus Jerome Godbout
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes