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

QRunnable::create isn't exposed to Python code

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Not Evaluated 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)

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes