Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Android Qt Quick 1 App not expanded, maximized or fullscreen

Android Qt Quick 1 App not expanded, maximized or fullscreen

Scheduled Pinned Locked Moved Mobile and Embedded
4 Posts 2 Posters 2.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    strahlex
    wrote on 22 Jul 2013, 14:48 last edited by
    #1

    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

    Feel free to check out my website machinekoder.com
    and my pet projects Intellicute and QtQuickVcp

    1 Reply Last reply
    0
    • S Offline
      S Offline
      strahlex
      wrote on 23 Jul 2013, 18:42 last edited by
      #2

      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?

      Feel free to check out my website machinekoder.com
      and my pet projects Intellicute and QtQuickVcp

      1 Reply Last reply
      0
      • F Offline
        F Offline
        flaviomarcio
        wrote on 24 Jul 2013, 01:50 last edited by
        #3

        Not only is the qtquick, Qtwidgets have same problem. I expect correction Qt5.2.

        Flavio Portela

        1 Reply Last reply
        0
        • S Offline
          S Offline
          strahlex
          wrote on 24 Jul 2013, 05:40 last edited by
          #4

          I just created a bug report: https://bugreports.qt-project.org/browse/QTBUG-32596

          Feel free to check out my website machinekoder.com
          and my pet projects Intellicute and QtQuickVcp

          1 Reply Last reply
          0

          3/4

          24 Jul 2013, 01:50

          • Login

          • Login or register to search.
          3 out of 4
          • First post
            3/4
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved