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?

    Best regards
    Strahlex



  • 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&#40;QLatin1String("qml/testandroid/main.qml"&#41;);
    viewer.showExpanded();
    
    return app->exec&#40;&#41;;
    

    }
    @

    @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.




Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.