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), f6538d29f (dev), f77f2f36d (6.6), df13a2480 (tqtc/lts-6.5)

    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

        1. pyside2234.py
          0.4 kB
          Iliyas Jorio

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes