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

native FileDialog blocks background thread

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • 6.2.0
    • PySide
    • None
    • Windows 10 x64
      Python 3.9
      Qt 6.2.0 (x86_64-little_endian-llp64 shared (dynamic) release build; by MSVC 2019) [limited API]
    • Windows
    • 9b4d1f7612 (pyside/pyside-setup/dev) 7d79c67d94 (pyside/pyside-setup/6.2) 7d79c67d94 (pyside/tqtc-pyside-setup/6.2) 9b4d1f7612 (pyside/tqtc-pyside-setup/dev) 7d79c67d94 (pyside/pyside-setup/6.2.3) 7d79c67d94 (pyside/tqtc-pyside-setup/6.2.3)

    Description

      An application creates a background worker thread (QThread) to handle permanent communication tasks. When the UIThread opens a OS native (modal) FileDialog with the

      QFileDialog.getSaveFileName() or QFileDialog.getOpenFileName()

      call not only the UIThread is blocked but also the background thread.

       

      Expected behavior: Background threads run execution while a OS native (modal) FileDialog is opened.

      However, the attached Code example works under PyQt6 as expected.

      Attachments

        1. 1792.mp4
          2.42 MB
        2. pyside1792.py
          3 kB
        For Gerrit Dashboard: PYSIDE-1792
        # Subject Branch Project Status CR V

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            opayters Oliver Peters
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes