Android Qt Quick 1 App not expanded, maximized or fullscreen
-
wrote on 22 Jul 2013, 14:48 last edited by
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?
Best regards
Strahlex -
wrote on 23 Jul 2013, 18:42 last edited by
Okay this needs some explanation. I use just the normal Hello World Application for Qt Quick 1:
@#include <QApplication>
#include "qmlapplicationviewer.h"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
Rectangle {
anchors.fill: parent
Text {
text: qsTr("Hello World")
anchors.centerIn: parent
}
MouseArea {
anchors.fill: parent
onClicked: {
Qt.quit();
}
}
}
@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?
-
wrote on 24 Jul 2013, 01:50 last edited by
Not only is the qtquick, Qtwidgets have same problem. I expect correction Qt5.2.
-
wrote on 24 Jul 2013, 05:40 last edited by
I just created a bug report: https://bugreports.qt-project.org/browse/QTBUG-32596
2/4