Android Qt Quick 1 App not expanded, maximized or fullscreen
Just run a Qt Quick 1 hello world application with Qt 5.1 for Android SDK and you will see on the device only a "window". showExpanded(), showMaximized() and showFullscreen() do not work. Any idea how to fix this issue?
Okay this needs some explanation. I use just the normal Hello World Application for Qt Quick 1:
Q_DECL_EXPORT int main(int argc, char *argv)
QScopedPointer<QApplication> app(createApplication(argc, argv));
QmlApplicationViewer viewer; viewer.addImportPath(QLatin1String("modules")); viewer.setOrientation(QmlApplicationViewer::ScreenOrientationAuto); viewer.setMainQmlFile(QLatin1String("qml/testandroid/main.qml")); viewer.showExpanded(); return app->exec();
@import QtQuick 1.1
text: qsTr("Hello World")
When I run this application on the emulator or a phone it just creates a "window". I expect to see the application using the whole screen like it was with Necessitas. The showExpanded(), showFullscreen() or showMaximized() seem to have no effect. Only thing that does anything is setGeometry(x,y). Then the window is resized to the geometry set with this function.
Has anyone an idea how to solve this problem? In my opinion this is a critical bug (showstopper) can anyone reproduce it?
Not only is the qtquick, Qtwidgets have same problem. I expect correction Qt5.2.
I just created a bug report: https://bugreports.qt-project.org/browse/QTBUG-32596