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. Problem with fullscreen mode in android with Qt 5.3.1
Forum Updated to NodeBB v4.3 + New Features

Problem with fullscreen mode in android with Qt 5.3.1

Scheduled Pinned Locked Moved Mobile and Embedded
10 Posts 5 Posters 5.7k Views 1 Watching
  • 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.
  • M Offline
    M Offline
    milesteam
    wrote on last edited by
    #1

    I am developing an android app (API 19) with qml (Qt 5.3.1, Mac OS X 10.8.5). The fullscreen mode works, but there is a little problem. The navigation bar is hidden, but the app is not using this space .
    !http://i.stack.imgur.com/2UXBK.jpg(Screenshot)!

    main.cpp

    @
    ...
    QApplication app(argc, argv);
    QQuickView viewer1(QUrl(QStringLiteral("qrc:///main.qml")));
    viewer1.setResizeMode(QQuickView::SizeRootObjectToView); // no effect
    viewer1.showFullScreen();
    return app.exec();
    ...
    @

    main.qml

    @
    import QtQuick 2.2

    Rectangle {
    color: "red"
    width: 100
    height: 100
    }
    @

    I tried adding android:theme="@android:style/Theme.NoTitleBar.Fullscreen" to AndroidManifest.xml, but no solution.

    Tested with simulator and device. Any ideas?

    1 Reply Last reply
    0
    • metaDomM Offline
      metaDomM Offline
      metaDom
      wrote on last edited by
      #2

      seems to be a problem with QML only, I use fullscreen on Android with C++/Qt and no problems. Please report the bug:

      https://bugreports.qt-project.org/secure/Dashboard.jspa

      1 Reply Last reply
      0
      • M Offline
        M Offline
        milesteam
        wrote on last edited by
        #3

        ok, i tried a qwidget solution, but the space is still there (only change: now it's black)
        @
        QApplication a(argc, argv);
        MainWindow w;
        w.showFullScreen();
        w.centralWidget()->showFullScreen();
        return a.exec();
        @

        Did i missed something?

        PS: Everything works fine with Qt 5.2.1.

        G 1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          That is a bug in Qt 5.3.1. It works fine in 5.3.0, too.

          Qt 5.3.2 is in final testing phase, maybe it will no suffer from this.

          (Z(:^

          1 Reply Last reply
          0
          • M Offline
            M Offline
            milesteam
            wrote on last edited by
            #5

            I tested the snapshot 5.3.2 105 for Mac (19-Aug-2014 09:58) but the bug is still there. I discovered that the problem is much bigger...

            If i rotate my smartphone, the screen sizes will not be updated and the app will unusable.

            An alternative code doesn't help:
            @QQmlApplicationEngine engine;
            engine.load(QUrl(QStringLiteral("qrc:///main.qml")));
            QQuickWindow *window = qobject_cast<QQuickWindow *>(engine.rootObjects().first());
            window->showFullScreen();@

            1 Reply Last reply
            0
            • B Offline
              B Offline
              Brexis
              wrote on last edited by
              #6

              Hi. Same here too. With Qt 5.3.1, a part of the screen is black when i switch the orientation mode.

              1 Reply Last reply
              0
              • M Offline
                M Offline
                milesteam
                wrote on last edited by
                #7

                Happy end!

                Current snapshot 5.3.2 for Mac (28-Aug-2014 01:47) resolves the problem.

                http://download.qt-project.org/snapshots/qt/5.3/5.3.2/2014-08-28_108/

                1 Reply Last reply
                0
                • sierdzioS Offline
                  sierdzioS Offline
                  sierdzio
                  Moderators
                  wrote on last edited by
                  #8

                  That is really great news, thanks for telling us!

                  (Z(:^

                  1 Reply Last reply
                  0
                  • B Offline
                    B Offline
                    Brexis
                    wrote on last edited by
                    #9

                    Great!! thanks @milesteam.

                    1 Reply Last reply
                    0
                    • M milesteam

                      ok, i tried a qwidget solution, but the space is still there (only change: now it's black)
                      @
                      QApplication a(argc, argv);
                      MainWindow w;
                      w.showFullScreen();
                      w.centralWidget()->showFullScreen();
                      return a.exec();
                      @

                      Did i missed something?

                      PS: Everything works fine with Qt 5.2.1.

                      G Offline
                      G Offline
                      georgethms10
                      wrote on last edited by
                      #10

                      @milesteam I tried to add it to my main.cpp file but its not working.

                      1 Reply Last reply
                      0

                      • Login

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