Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.8
-
None
-
ios 18
-
-
2083daf79 (dev), dc885e39c (6.8)
Description
On iOS, calling QFileDialog::getOpenFileName hits an assert:
ASSERT failure in QFileDialog: "Called object is not of the correct type (class destructor may have already run)", file /Users/qt/work/qt/qtbase/src/corelib/kernel/qobjectdefs_impl.h, line 131
The same problem occurs when you don't use the static members, but you try to call dialog->deleteLater().
The only way it works is to not use the static members and not call deleteLater().
You can test with the annexed project: I created 3 buttons to open the QFileDialog in 3 different ways, all of them work fine on qt 6.5.6 for ios, not on 6.8.0.