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
Forum Updated to NodeBB v4.3 + New Features

change ApplicationWindow size on Android

Scheduled Pinned Locked Moved Solved Mobile and Embedded
androidscreenwindow
5 Posts 3 Posters 1.3k Views 2 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
    morte
    wrote on 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.

    raven-worxR J.HilkJ 2 Replies Last reply
    0
    • M morte

      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.

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on 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
      0
      • M morte

        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.HilkJ Offline
        J.HilkJ Offline
        J.Hilk
        Moderators
        wrote on 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
        • raven-worxR raven-worx

          @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 last edited by morte
          #4

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

          raven-worxR 1 Reply Last reply
          0
          • M morte

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

            raven-worxR Offline
            raven-worxR Offline
            raven-worx
            Moderators
            wrote on 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

            • Login

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