Hey there,

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*
<https://gist.github.com/martin-chatterjee/326d6fd2523a215212fb55b815fa434a>
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)


--
       Martin Chatterjee

[ Freelance Technical Director ]
[   http://www.chatterjee.de   ]
[ https://vimeo.com/chatterjee ]

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAC%2B%2B27K6gqjesCdntZzM2V_Q2gdXDobteQHoysjKX%3DyFCnvv0w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to