I stumbled over this issue while writing tests for some UI code.
I want to display a QFileDialog modally and then automatically close it with a few seconds delay by calling accept() through a QTimer.
This does work as expected in
PySide -- however it does not work anymore in
PySide2.
In this
Github Gist you can find a
minimal repro script and
more detailed explanation in the comments.
Does this ring a bell for anyone?
If anybody could have a quick look and maybe tell me what I'm doing wrong (or suggest a workaround) that woud be greatly appreciated...
Thanks in advance!
Cheers, Martin
BTW, I tested under Windows 10.
It works as expected in:
- Standalone Python 2.7 + PySide
- Maya 2016 SP 6 ( --> PySide)
It does not work in:
- Maya 2017 U4 ( --> PySide2)
- Maya 2018 U2 ( --> PySide2)