Android Qt Quick 1 App not expanded, maximized or fullscreen
-
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?
-
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