Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
custom QDialog won't close (Android)
Alright there's a custom QDialog (class derived from QDialog) , stuff populated from QML, it works it opens just fine it behaves as desired, but then when we want to kill it using
mDialog-> close() or mDialog->hide()
all the animations within the dialog halt, everything within it freezes but.. it doesn't close.
if you wonder how we initiate the destruction process, there's a button within the QML which sends a signal to the C++ back-end, the back-end holds pointer to the dialog and tries to close.
I think we've browsed all the QDialog-not-closing posts available on the Internet - to no avail.
A similar issue from long ago available here: https://l.facebook.com/l.php?u=https%3A%2F%2Fforum.qt.io%2Ftopic%2F29035%2Fno-redraw-application-when-close-dialog-on-android%3Ffbclid%3DIwAR32rARQaVTSVAsoIOmT9Hdw9S5gAJt_JyxmbsU-oL9dECKsgXGqOFtgZtk&h=AT1X-mr3d_jtF2F5WsMUr4u0ZtYhAqZ_PrK0xcCmNSrNonTz7DZq-Qi5zVxCIssK4sz7CuDwIZBUzIpZkUKA8u0uVHIiy5AQdhLXUKwSuaHPOM_FkHL3qqL7XPxqy-x52co
Sounds like basic stuff Open->close a dialog; is there anyone here to help?
After many human-work-hours, we stumbled upon a FIX.
Lo and behold. So for this to work we had to
Now would anyone explain why there's nothing in documentation suggesting that something like this would be required? Supposedly a BUG, right?
conversely for instance a sequence of:
dialog->close() /// hide()/ reject() delete dialog;
would result in an exception with QT saying something about it's processing queue being occupied.
@Vega4 What does
To delete the dialog better use
What Qt version do you use?
Vega4 last edited by
@jsulm The latest one we're constantly clicking the 'update QT' button in hopes of improving our experience.
The latest one we're constantly clicking the 'update QT' button in hopes of improving our experience