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

        Issue Links

          For Gerrit Dashboard: PYSIDE-2234
          # Subject Branch Project Status CR V

          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