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]How to set the screen direction and make it display in FullScreen?
Forum Updated to NodeBB v4.3 + New Features

[Android]How to set the screen direction and make it display in FullScreen?

Scheduled Pinned Locked Moved Mobile and Embedded
6 Posts 3 Posters 3.1k 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.
  • B Offline
    B Offline
    BBFAG3
    wrote on last edited by
    #1

    I mean..It's Vertical in default, I want it "Lie down" and fullscreen(no status bar).
    My App. is a QML app, I can't find any helpful doc. in Help..Thx a lot!

    1 Reply Last reply
    0
    • V Offline
      V Offline
      vkrishna
      wrote on last edited by
      #2

      Have you tried setting the orientation in the AndroidManifest.xml file?

      @
      <activity android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|locale|fontScale|keyboard|keyboardHidden|navigation"
      android:name="org.qtproject.qt5.android.bindings.QtActivity"
      android:label="@string/app_name"
      android:screenOrientation="landscape"
      android:theme="@android:style/Theme.NoTitleBar.Fullscreen" >@

      Add the* android:screenOrientation* part and your app will always be in landscape mode i.e, "Lie down" mode :)

      1 Reply Last reply
      0
      • B Offline
        B Offline
        BBFAG3
        wrote on last edited by
        #3

        Ehh..Where should I edit this file? new one and add it to qrc or edit the "BUILD-PATH/android/AndroidManifest.xml"?

        1 Reply Last reply
        0
        • V Offline
          V Offline
          vkrishna
          wrote on last edited by
          #4

          edit the AndroidManifest.xml file that is in the build folder.

          1 Reply Last reply
          0
          • K Offline
            K Offline
            kolegs
            wrote on last edited by
            #5

            and if you need fullscreen just use:
            @QQuickView view;
            view.showFullScreen();@

            remember you need Qt 5.2 it doesnt work with earlier versions (statusbar stays on the screen)

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

              Thanks a lot!I sovled it by .showFullScreen();

              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