Details
-
Bug
-
Resolution: Done
-
P2: Important
-
None
-
6.2.0
-
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]
-
-
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
For Gerrit Dashboard: PYSIDE-1792 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
391693,4 | QFileDialog: allow threads with modal dialogs | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
391868,2 | QFileDialog: allow threads with modal dialogs | 6.2 | pyside/pyside-setup | Status: MERGED | +2 | 0 |