modal dialog called from QAction does not close until action terminates
Ais connected to a MainWindow member function
fthat executes a QFileDialog
D, then takes quite a while to load the selected files. Against my intentions, the file dialog remains open until
D.close()does not help. Letting
Dgo out of scope does not help.
My best hypothesis right now is that the unexpected behavior of
fhas to do with
fbeing called from a QAction. Is this plausible, or even a known problem?
has no effect, the problem persists.
Anyway, I was wrong about QAction. The problem also persists if I directly call
can you please show your code?
What helps is