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

QRunnable::create isn't exposed to Python code

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • 6.5.0
    • 5.15.7, 6.4.2
    • PySide
    • None
    • 5fac301e8 (dev)

    Description

      QRunnable *QRunnable::create(std::function<void ()> functionToRun) isn't available in PySide2 (5.15.8) and PySide6 (6.4.2).

      It's not a dealbreaker; the workaround is to create a wrapper class that inherits from QRunnable and implements run(). It's just a little more verbose, so it'd be convenient to be able to use QRunnable.create.

      Note that QRunnable.create is available in competing Qt bindings.

      Attachments

        Issue Links

          Activity

            People

              shpremna Shyamnath Premnadh
              ij Iliyas Jorio
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: