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. change ApplicationWindow size on Android

change ApplicationWindow size on Android

Scheduled Pinned Locked Moved Solved Mobile and Embedded
androidscreenwindow
5 Posts 3 Posters 1.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.
  • M Offline
    M Offline
    morte
    wrote on 17 Jan 2019, 14:00 last edited by
    #1

    I'm wondering is there way to change size of ApplicationWindow (QML) on Android? Looks like it bound somehow to Screen dimensions and changing height or maximumHeight properties don't make any effect.

    R J 2 Replies Last reply 17 Jan 2019, 14:06
    0
    • M morte
      17 Jan 2019, 14:00

      I'm wondering is there way to change size of ApplicationWindow (QML) on Android? Looks like it bound somehow to Screen dimensions and changing height or maximumHeight properties don't make any effect.

      R Offline
      R Offline
      raven-worx
      Moderators
      wrote on 17 Jan 2019, 14:06 last edited by
      #2

      @morte
      what should be the purpose of such a feature?! o.O
      If you want a smaller root item simply insert such a container item.

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      M 1 Reply Last reply 17 Jan 2019, 17:32
      0
      • M morte
        17 Jan 2019, 14:00

        I'm wondering is there way to change size of ApplicationWindow (QML) on Android? Looks like it bound somehow to Screen dimensions and changing height or maximumHeight properties don't make any effect.

        J Offline
        J Offline
        J.Hilk
        Moderators
        wrote on 17 Jan 2019, 14:27 last edited by
        #3

        @morte said in change ApplicationWindow size on Android:

        I'm wondering is there way to change size of ApplicationWindow (QML) on Android? Looks like it bound somehow to Screen dimensions and changing height or maximumHeight properties don't make any effect.

        no, simply because Android does not have a WindowManager-system. Therefore the root item is shown in "fullscreen".

        you'll have to make a "2nd root-item" where you manually control width and height.


        Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


        Q: What's that?
        A: It's blue light.
        Q: What does it do?
        A: It turns blue.

        1 Reply Last reply
        0
        • R raven-worx
          17 Jan 2019, 14:06

          @morte
          what should be the purpose of such a feature?! o.O
          If you want a smaller root item simply insert such a container item.

          M Offline
          M Offline
          morte
          wrote on 17 Jan 2019, 17:32 last edited by morte
          #4

          @raven-worx purpose - reserve some space for banner, for example

          R 1 Reply Last reply 17 Jan 2019, 17:36
          0
          • M morte
            17 Jan 2019, 17:32

            @raven-worx purpose - reserve some space for banner, for example

            R Offline
            R Offline
            raven-worx
            Moderators
            wrote on 17 Jan 2019, 17:36 last edited by
            #5

            @morte

            ApplicationWindow {
               Item { 
                   id: banner
                   x: 0; y: 0
                   width: parent width; height: 50
              }
              Item {
                id: content
                 width: parent.width
                anchors {
                   top: banner.bottom
                   bottom: parent.bottom
               }
             }
            }
            

            --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
            If you have a question please use the forum so others can benefit from the solution in the future

            1 Reply Last reply
            2

            4/5

            17 Jan 2019, 17:32

            • Login

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