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. Strange layout of main app window on iOS

Strange layout of main app window on iOS

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
ios
2 Posts 1 Posters 383 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.
  • D Offline
    D Offline
    Dmitriano
    wrote on 27 Dec 2021, 12:42 last edited by Dmitriano
    #1

    Today I noticed, that the main app window with the code below:

    import QtQuick
    import QtQuick.Controls
    import QtQuick.Layouts
    
    ApplicationWindow {
        id: window
        visible: true
        width: 360
        height: 640
        title: appName
        ...
    }
    

    is not resized automatically to fit the screen on iOS.

    Also I tried clock example (qt-everywhere-src-6.2.2/qtdoc/examples/demos/clocks), that looks like this:

    67d47010-d1a2-41d4-ba36-930754b4b559-image.png

    is it a normal behaviour?

    my QT version is 6.2.2

    D 1 Reply Last reply 29 Dec 2021, 13:11
    0
    • D Dmitriano
      27 Dec 2021, 12:42

      Today I noticed, that the main app window with the code below:

      import QtQuick
      import QtQuick.Controls
      import QtQuick.Layouts
      
      ApplicationWindow {
          id: window
          visible: true
          width: 360
          height: 640
          title: appName
          ...
      }
      

      is not resized automatically to fit the screen on iOS.

      Also I tried clock example (qt-everywhere-src-6.2.2/qtdoc/examples/demos/clocks), that looks like this:

      67d47010-d1a2-41d4-ba36-930754b4b559-image.png

      is it a normal behaviour?

      my QT version is 6.2.2

      D Offline
      D Offline
      Dmitriano
      wrote on 29 Dec 2021, 13:11 last edited by Dmitriano
      #2

      @Dmitriano It is probably not a trivial question because, as far as I see, setting window width and height to Screen.width and Screen.height is not a solution, because there can be task bar and something else (I do not know what can it be on iOS) that partially occupies the screen.

      1 Reply Last reply
      0

      1/2

      27 Dec 2021, 12:42

      • Login

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