[SOLVED]Android: Modal dialogs issue
-
When I call any modal dialog it doesn’t appear in full screen mode until minimize the application to the tray then open it once again although I forced it to be shown in full screen by:
@ DialogAbout dlg;
#if defined(Q_OS_ANDROID)
dlg.showFullScreen();
#endif
dlg.exec();@How can I fix this issue?
-
I tried to use the following but nothing changed!
[code] DialogAbout dlg;
#if defined(Q_OS_ANDROID)
dlg.setMinimumSize(0, 0);
dlg.setMaximumSize(16777215, 16777215);
dlg.setWindowState(Qt::WindowFullScreen);
dlg.setWindowModality(Qt::ApplicationModal);
dlg.showFullScreen();
#endif
dlg.exec();[/code]Any way, I took a screencast for clarification the problem http://mbnoimi.me/tmp/modal_00001.webm
The repository of the project is: https://github.com/mbnoimi/SimpleInvoice
-
Did you file a bug report yet?
-
I filed a bug report in: https://bugreports.qt-project.org/browse/QTBUG-33294
-
As a temporarily solution I converted all modal dialog to StackedWidgets to make them available because most of them impossible to deal with (ex. QMessageBox).
Do you've another idea to fix this bug?
-
I have a similar problem, and may switch to stacked widgets as well. Do you have a simple example you can upload to the bug report?
-
[quote author="landrew" date="1382456641"]I have a similar problem, and may switch to stacked widgets as well. Do you have a simple example you can upload to the bug report?[/quote]
You can get it from https://bugreports.qt-project.org/secure/attachment/34611/TestAndroid.tar.gz
-
This issue has been solved under Qt 5.2.1 + Qt Creator 3.1.0.
https://bugreports.qt-project.org/browse/QTBUG-33294